Software Archive
Read-only legacy content

Examples using PXCProjection but not uvmap

James_T_2
Einsteiger
2.553Aufrufe

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 Antworten
Yuri_M_Intel
Mitarbeiter
2.553Aufrufe

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

James_T_2
Einsteiger
2.553Aufrufe

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?

Xusheng_L_Intel
Mitarbeiter
2.553Aufrufe

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

James_T_2
Einsteiger
2.553Aufrufe

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

Are there any examples that use the Projection methods?

samontab
Geschätzter Beitragender II
2.553Aufrufe
James_T_2
Einsteiger
2.553Aufrufe

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?

samontab
Geschätzter Beitragender II
2.553Aufrufe

projection.cpp is the one with the projections ;)

what else do you need?

James_T_2
Einsteiger
2.553Aufrufe

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.

samontab
Geschätzter Beitragender II
2.553Aufrufe

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

Antworten