projection

What is a Projection in NHibernate?

给你一囗甜甜゛ 提交于 2019-12-04 15:22:40
问题 I have a project where I'm using NHibernate to handle bindings to the database. So far I have mostly been using the basics when it comes to queries. Now I'm struggling with a more difficult query, and I notice new parts of NHibernate. In particular I'm curious about SetProjection , which seems to be important when doing queries. What is a Projection, and how will I typically use it? I am assuming that a projection is a general term when it comes to databases, so you are welcome to give more

Projection of a image from inside a cylinder to a plane 2D [Matlab]

为君一笑 提交于 2019-12-04 15:06:47
With a camera inside a cylinder I capture a image. I want to transform that image into a plane 2d. The image inside the cylinder have a lot of dots which forms a grid. What I tried to do was estimating the transformation. With blob analysis I can detect the center of each point and obtain the coordinates in pixels. I save this in matrix called ImCilynder. After that i create a matrix with coordinates of that points in the plane with the name Im2d. I calculate the transformation (H) solving the equation: Imcilynder * H= Im2d; H= matrix [9x1] H=pinv(Imcilynder) * Im2d But, when i'm doing the

matplotlib: custom projection for hemisphere/wedge

梦想与她 提交于 2019-12-04 14:58:29
I'm looking at the custom projection example in the matplotlib gallery -- I'm trying to modify it to plot only the southern hemisphere. I have adjusted the necessary [-pi/2,pi/2] limits to [-pi/2,0]. Now I've been looking at: def _gen_axes_patch(self): """ Override this method to define the shape that is used for the background of the plot. It should be a subclass of Patch. In this case, it is a Circle (that may be warped by the axes transform into an ellipse). Any data and gridlines will be clipped to this shape. """ #return Circle((0.5, 0.5), 0.5) return Wedge((0.5,0.5), 0.5, 180, 360) def

transforming projection matrices computed from trifocal tensor to estimate 3D points

拜拜、爱过 提交于 2019-12-04 12:10:43
I am using this legacy code: http://fossies.org/dox/opencv-2.4.8/trifocal_8cpp_source.html for estimating 3D points from the given corresponding 2D points from 3 different views. The problem I faced is same as stated here: http://opencv-users.1802565.n2.nabble.com/trifocal-tensor-icvComputeProjectMatrices6Points-icvComputeProjectMatricesNPoints-td2423108.html I could compute Projection matrices successfully using icvComputeProjectMatrices6Points . I used 6 set of corresponding points from 3 views. Results are shown below: projMatr1 P1 = [-0.22742541, 0.054754492, 0.30500898, -0.60233182; -0

QueryDSL projections with @ManyToOne relation

余生长醉 提交于 2019-12-04 10:06:41
I'm using OpenJPA with QueryDSL, I try to avoid manipulating Tuple objects by using the bean projections features of QueryDSL. I have for example these two Entity, with a @ManyToOne relation. @Entity public class Folder { private Long id; private String name; private String path; @ManyToOne @JoinColumn(name = "FK_FILE_ID") private File file; } @Entity public class File { private Long id; private String fileName; } When I'm executing this query : List<Folder> listFolders = query.from(folder) .list(Projections.bean(Folder.class, folder.name, folder.file.fileName)); I have an error saying that

Project Scipy Voronoi diagram from 3d to 2d

非 Y 不嫁゛ 提交于 2019-12-04 09:56:33
I am trying to find a way to calculate a 2d Power Diagram in Python. For this I want to make use of the fact that a 2d power diagram can be interpreted as the intersection of a regular 3d voronoi diagram with a plane . With the SciPy Voronoi module I can calculate a 3d Voronoi diagram - is there a possibility to intersect it with a plane and convert it to a 2d diagram? There isn't yet a power diagram capability inside of SciPy. Converting a 3D Voronoi diagram into a 2D power diagram is likely to be difficult and, at least within Python, slow. To work around this, I've developed a C++ program

Subsonic 3 LINQ Projection issue, fixed or no?

我与影子孤独终老i 提交于 2019-12-04 07:29:33
I'm currently experiencing the issue mentioned here (and several other places): Subsonic 3 Linq Projection Issue This is occurring using the 3.0.0.4 release package, and it also occurs when I grab the latest from GitHub and build it. I am using the LINQ Templates. I have this code: var newModel = new ViewModels.HomeIndexViewModel() { PulseListViewModel = new ViewModels.PulseListViewModel { Pulses = from p in _pulseQuery join a in _accountQuery on p.AccountId equals a.AccountId orderby p.CreateDate descending select new PulseListViewModel.Pulse() { AccountName = a.Name , Category = p.Category ,

Converting 360 degree view to equirectangular in node js?

雨燕双飞 提交于 2019-12-04 06:07:36
I have been trying to convert the 360 degree camera, single fish eye image, to equirectangular viewer in node js for the past two days. In stackoverflow, the same question is asked and answered in pseudo code. I have been trying to convert pseudo code to node js and cleared some errors. Now the project runs without error but the output image is blank. From that pseudo, I dont know the polar_w, polar_h and geo_w, geo_h, geo and polar value, so, it gave static value to show the output. Here is a link which i followed to convert pseudo code to node js. How to convert spherical coordinates to

How to use NHibernate Projections to retrieve a collection

筅森魡賤 提交于 2019-12-04 05:38:21
I am lazy loading the collections, and also because there are so many fields within the person table, I am writing a projection function to retrieve only certain properties. It works with properties, just not collections of other entities. I would be fine if they were loaded in as proxies and i could get them later, but right now it just loads in null. public IList<Person> ListTop40() { var list = _session.CreateCriteria(typeof(Person)) .SetProjection(Projections.ProjectionList() .Add(Projections.Property("FirstName")) .Add(Projections.Property("LastName")) .Add(Projections.Property("Jersey"))

How to convert NAD 83 coordinates to latitude and longitude with rgdal package?

五迷三道 提交于 2019-12-04 04:59:34
I have coordinates, all of which should be located in DC, but I cannot figure out how to convert them from NAD 83 to latitude and longitude in R. I'm using the spTransform() function in the rgdal package and get an error about non-conformant data. library(rgdal) nad83_coords <- data.frame(x=c(396842.6, 397886.9, 398315.5, 398154.3, 398010.3), y=c(140887.1, 139847.0, 138743.9, 139534.5, 138697.3)) coordinates(nad83_coords) <- c('x', 'y') proj4string(nad83_coords) <- CRS("+init=epsg:4269") Error in `proj4string<-`(`*tmp*`, value = <S4 object of class "CRS">) : Geographical CRS given to non