Questions tagged [projection]

A projection is the transformation of a set of data from one form into another.

Mathematically speaking a projection is a function that yields the same result if applied multiple times.

The term is used with this meaning in graphics when 'projecting' a 3D scene on a 2D canvas.

The same is often happening when analyzing data with many dimensions (age, gender, number of transactions, ...) and projecting it on fewer dimensions, in the simple case by just dropping dimensions or by creating new dimensions like (might commit fraud).

When dealing with typed languages the dimensions might be attributes of a class. So if I have one or multiple types with attributes (A, B, C, ...) and create from instances of those types instances of a type which has only the attributes (A, B) this is a projection too.

Another example are databases. A projection is an operation which discards some attributes of a tuple, in other words, which omits some columns of a relational database query result. For an object or document database a projection filters out some fields.

After all a database projection yields the same result if applied multiple times, too.

2017 questions
5
votes
3 answers

Fisheye projection matrix in Xna/OpenGL - 3D

I'm looking for a projection matrix I can use in 3D that will give me the effect of a fisheye. I'm not looking for a pixelshader or anything like that, that will manipulate pixels - but the actual projection matrix used in projecting from 3D space…
5
votes
3 answers

Subsonic 3 LINQ Projection issue, fixed or no?

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…
quentin-starin
  • 26,121
  • 7
  • 68
  • 86
5
votes
1 answer

Server side projection with MongoDB C# driver 2.0

I have a collection of documents with a few small properties, and one huge property (a binary 10MB or so PDF document). I'm using the latest stable C# driver, published on 2015-04-02. Is there a way to get a list of these documents, with all the…
Test_me
  • 393
  • 4
  • 13
5
votes
0 answers

Display a WFS service with OpenLayers 3. Define and add custom projection

I have a very simple question which I can not really find answers to. I am working with OpenLayers 3. I want to display a WFS Service with a layer defined in GeoServer 2.6.2. This layer is defined with a custom reference system which I have defined…
César
  • 61
  • 3
5
votes
2 answers

Use of Cast Projection inside a Concat Projection

I have the following query: var result = _session.QueryOver() .Where(e => e.Property == value) .SelectList(list => list .Select(f => Projections.Concat("prefix-", e.BigIntProperty)).WithAlias(() => alias.Whatever) …
lalibi
  • 3,057
  • 3
  • 33
  • 41
5
votes
1 answer

Plotting world map in orthographic projection is giving "non finite points"

I have a shapefile of world countries, downloaded from here. I can plot it in R using countries <-…
Rodrigo
  • 4,706
  • 6
  • 51
  • 94
5
votes
4 answers

Any way to project "original plus a few changes" with a LINQ query?

I have code that is building up a collection of objects. I'm trying to reduce the number of .ToList() calls I make, so I'm trying to keep it as IEnumerable for as long as possible. I have it almost finished except for two properties which need to…
John Saunders
  • 160,644
  • 26
  • 247
  • 397
5
votes
1 answer

How to draw frustum in opengl

I want to draw a frustum using GL_LINE_STRIP. What will be my coordinates for these frustum vertices? I have model view and projection matrices. Is it possible to calculate coordinates in shader itself using these matrices?
debonair
  • 2,505
  • 4
  • 33
  • 73
5
votes
1 answer

Project image onto notebook using OpenCV

I am trying to implement an application that projects an image onto a page of a notebook, using OpenCV, a webcam and a projector. To achieve that, I am doing the following steps: I am using a webcam to detect the four corners points of a page. A…
Mihai Morariu
  • 166
  • 1
  • 7
5
votes
1 answer

OCR and character similarity

I am currently working on some kind of OCR (Optical Character Recognition) system. I have already written a script to extract each character from the text and clean (most of the) irregularities out of it. I also know the font. The images I have now…
JohannesB
  • 1,995
  • 21
  • 35
5
votes
1 answer

How to get row count of audit table using hibernate envers

In audit table, there is not such a Criteria that we could use Criteria.setProjection(Projections.rowCount()) to get the row count of the query. We could use AuditQuery to do similar things. But I couldn't find how to set projections in this case.…
5
votes
1 answer

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

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:…
magarwal
  • 564
  • 4
  • 17
5
votes
1 answer

NHibernate: How to select the root entity in a projection

Ayende describes a really great way to get page count, and a specific page of data in a single query here: http://ayende.com/blog/2334/paged-data-count-with-nhibernate-the-really-easy-way His method looks like: IList list =…
5
votes
3 answers

project a sphere to a plane using matlab

This is probably very basic matlab, so forgive me. I use the command sphere to create a 3D sphere and have the x,y,z matrices that will produce it using surf. For example: [x,y,z]=sphere(64); I'd like to project (or sum) this 3D sphere into one of…
user2066183
5
votes
2 answers

Reconstruct 3D-Coordinates in Camera Coordinate System from 2D - Pixels with side condition

I am trying to reconstruct 3D-Coordinates from the 2D-Pixel-Coordinates in a Camera Picture using a side condition (in MatLab). I do have extrinsic and intrinsic camera parameters. Using homogenous transformation I can transform 3D-Coordinates from…