Software Archive
Read-only legacy content
17061 Discussions

Examples using PXCProjection but not uvmap

James_T_2
Beginner
1,239 Views

Are there any examples where the Map and Project methods of  PXCProjection/PXCMProjection are used?

Preferable examples that go in a complete loop that checks the transforms are working in all directions.

I have only found examples using uvmap or its inverse.

0 Kudos
9 Replies
Yuri_M_Intel
Employee
1,239 Views

Hi James,

Please, try the 3DViewer is integrated into the CaptureViewer.

Start CaptureViewer, select any depth profile for display, click right mouse button on the selected, and press Start3DView from popup menu

0 Kudos
James_T_2
Beginner
1,239 Views

I'll check that out when I get back to my camera, but I don't see the source code for CaptureViewer in the SDK.  Is that source code available somewhere else?

0 Kudos
Xusheng_L_Intel
Employee
1,239 Views

You can find the sample code @C:\Program Files (x86)\Intel\RSSDK\sample\raw_streams

0 Kudos
James_T_2
Beginner
1,239 Views

projection.cpp in raw_streams uses MapDepthToColor so that is a good help.  

Are there any examples that use the Projection methods?

0 Kudos
samontab
Valued Contributor II
1,239 Views
0 Kudos
James_T_2
Beginner
1,239 Views

I'm blind, I can't find any reference to the Project methods of PXCProjection.

Here is what I see:

sample/raw_streams/src has 4 files.

main.cpp has no references to PXCProjection
projection.cpp references PXCProjection and calls:
    Release
    QueryUVMap
    MapDepthToColor
    CreateDepthImageMappedToColor
    QueryInvUVMap
raw_streams only calls PXCProjection via projection.cpp code, it has no references to PXCProjection
timer.cpp has no references to PXCProjection

Am I missing the calls or maybe there is a newer version than the code that gets installed with the Gold SDK?

0 Kudos
samontab
Valued Contributor II
1,239 Views

projection.cpp is the one with the projections ;)

what else do you need?

0 Kudos
James_T_2
Beginner
1,239 Views

Can you give me a line number where any of the ProjectXXX methods of PXCProjection are used?  I just can't find any.

If you really do see those methods being used, we must have different files.  I have the files that were installed with "intel_rs_sdk_offline_package_r_3.1.0.85181.exe"

The file "sample\raw_streams\src\projection.cpp" contains a reference to PXCProjection:MapDepthToColor on line 139.  This gets executed when you press the IDC_PROJECTION button in the UI of raw_streams.

I can't find a reference to any of the 4 ProjectXXX methods of PXCProjection in that file.

0 Kudos
samontab
Valued Contributor II
1,239 Views

OK, I was refering to the general projection word, not the specific methods. You are right.

0 Kudos
Reply