9 Replies Latest reply on Mar 16, 2018 6:42 AM by sammas

    [Question to limit depthrange][RealSense SDK 2016 R3][Scan 3D][SR300][C#]

    sammas

      Hello

      I have a question to constrain the depth while scanning. Instead of scanning the whole distance the camera can use, only e.g. the first 80 cm's should be used, to avoid problems with items in the backround(They should not be scanned). I'm using the Scan3d from Intel® RealSense™ SDK for Windows 2016 R3. I try different ways but no one is working, could you please show me a working possibility? I'm using C# and SR300 on Win10.

      I try to constrain depth by:

      1.)

      setting the Area. (Intel® RealSense™ SDK 2016 R3 Documentation ).

      Intel.RealSense.Scan.Area myArea=scan.QueryArea();

      myArea.depth=0.8f;//Unit is meter

      scan.SetArea(myArea);

      Controlling this by checking:

      Intel.RealSense.Scan.Area myArea2=scan.QueryArea();

      leads to myArea.depth==0, so no update here. All examples/ways are also used while scanning - but items in backround are always the same.

      2.)

      try to change: Intel® RealSense™ SDK 2016 R3 Documentation ; but this is read only - where can I set it?

      Intel.RealSense.RangeF32 r=device.DepthSensorRange;

      f.max=1024;

      device.DepthSensorRange=f;//Not working because DepthSensorRange is read only

      3.)

      Intel.RealSense.RangeF32 f2=device.DSMinMaxZ;//This is used for other cameratype, but I found it while inspecting the device in the debugger

      f2.max=(f2.max+1)/2;

      device.DSMinMaxZ=f2;