3 Replies Latest reply on Mar 30, 2018 3:38 AM by MartyG

    How to display on the projector my picture for D435?

    Osmansab

      Hi.
      How to display on the projector my picture.

        • 1. Re: How to display on the projector my picture for D435?
          MartyG

          Could you explain your problem some more please, as I did not understand it.  I'm very sorry.  If there is another language that is easier for you, please write in that language if you want to and I can translate it.

          • 2. Re: How to display on the projector my picture for D435?
            Osmansab

            Can I use the infrared projector to display primitive line drawings or circles?

            • 3. Re: How to display on the projector my picture for D435?
              MartyG

              Thanks Osmansab for your question. 

               

              Drawing lines and shapes used to be possible in the old RealSense SDKs for Windows (versions '2016 R2' and '2016 R3') for cameras older than the D435.  It drew the line / shape by changing the color of the pixels at the pointer.

               

              Re: How to draw a circle, square, dot or line in the color PXCImage?

               

              The problem is how to convert that method for RealSense SDK 2.0.

               

              The SDK 2.0 documentation has this script:

               

              rs2::pipeline pipe;

              pipe.start();

              rs2::frameset frames = pipe.wait_for_frames();

              rs2::frame frame = frames.first(RS2_STREAM_DEPTH);

              if (frame)

              frame.get_data(); // Pointer to depth pixels,

              // invalidated when last copy of frame goes out of scope

               

              So I guess that if you wanted to put the pointer to the infrared pixels instead of the depth pixels, you would perhaps change the script to:

               

              rs2::pipeline pipe;

              pipe.start();

              rs2::frameset frames = pipe.wait_for_frames();

              rs2::frame frame = frames.first(RS2_STREAM_INFRARED);

              if (frame)

              frame.get_data(); // Pointer to infrared pixels,

              // invalidated when last copy of frame goes out of scope

               

              I think it would be best to ask the person who wrote the drawing script for the old SDKs, who is a RealSense stream programming expert.  jb455 - what do you think?