Software Archive
Read-only legacy content
17061 Discussions

high resolution color image in blob

James_W_1
Beginner
407 Views

 

Hi all,

I would do segmentation from high resolution blob(1920x1080). It was okay in the 2015 R5 SDK. But when I upgrade into the 2016 R1 SDK.  It can not work now. It only can work in 640x480 resolution.

sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR,  1920, 1080, 30);
PXCMBlobData blobData=null;
PXCMBlobConfiguration blobConfiguration=null;

                pxcmStatus segs =sm.EnableBlob();

                PXCMBlobModule blobM =sm.QueryBlob();

                if (blobM != null)
                {
                    blobData = blobM.CreateOutput();
                    blobConfiguration = blobM.CreateActiveConfiguration();
                    blobConfiguration.EnableColorMapping(true);
                    blobConfiguration.EnableContourExtraction(true);
                    blobConfiguration.EnableSegmentationImage(true);
                    blobConfiguration.ApplyChanges();
                }

sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_DEPTH, 640, 480,30);
 sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_IR, 640, 480, 30);

                pxcmStatus cs = sm.Init();

//the vlaue of cs is pxcmStatus.PXCM_STATUS_ITEM_UNAVAILABLE

if I comment out  blobConfiguration.EnableColorMapping(true) , cs value become ​PXCM_STATUS_NO_ERROR. But

   PXCMCapture.Sample sampleb =sm.QueryBlobSample()

sampleb is null. I still can not get the blob data. When I change

//sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR,  1920, 1080, 30);
//change into
sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR,  640, 480, 30);

Everything is fine. any idea?

0 Kudos
3 Replies
Xusheng_L_Intel
Employee
407 Views

I tried to use 1920x1080x30 setting  in our sample codes and it did work. Please find the right usage @C:\Program Files (x86)\Intel\RSSDK\framework\CSharp\DF_BlobViewer.cs. Thanks!

0 Kudos
James_W_1
Beginner
407 Views

Dear David,

Thank you for your reply. However, I still can not get it to work on your sample code. When I change Blobprocessor.cs to use 1920x1080x30

            if (_isColorActive)
            {
                //Note: You don't have to call EnableStream , this call is only for viewer display  
                instance.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 1920, 1080, 30);
                // Enable blob color mapping
                blobConfiguration.EnableColorMapping(true);
                blobConfiguration.ApplyChanges();
            }

When I run the program and  click "Color Image" then intial failed.

Can you tell me how to verify that the setting of  1920x1080 can work? Thanks!

 blob.png

 

0 Kudos
James_W_1
Beginner
407 Views
0 Kudos
Reply