librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

IR field of view changes when depth is disabled

Open avivhu opened this issue 10 years ago • 7 comments

When playing around with the cpp-config-ui example, I found that the IR field of view changes when Depth is toggled on/off.

It seems to match the Depth image when Depth is on, but takes a smaller field of view when Depth is off.

I've found the same effect with the official RealSense SDK.

Could anyone explain it? Is it a bug, or intentional?

Thank you.

Required Info
Camera Model SR300
Firmware Version
Operating System & Version Windows 10
Kernel Version (Linux Only)
Build System VS2013

avivhu avatar Mar 05 '16 18:03 avivhu

It takes multiple IR camera pixels to calculate a depth pixel and so the resolution of a depth image is slight less than the raw IR video. It's intentional for the IR image to get cropped to depth resolution so that pixels match. A feature rather than a bug.

teknotus avatar Mar 05 '16 19:03 teknotus

The fact is that when depth is OFF, the IR field of view becomes SMALLER. That is, smaller than the IR when depth is ON, and also smaller than the Depth. If anything, I would expect the IR FOV to become larger when depth is OFF, as I would expect it to be the raw IR size. Certainly not smaller.

avivhu avatar Mar 05 '16 19:03 avivhu

Can you quantify 'smaller' with a number and/or pictures? Since this is happening on both the SDK and librealsense, the best I can do is pass the report to the hardware team and see if they have any thoughts. Does seem odd.

ddiakopoulos avatar Mar 05 '16 21:03 ddiakopoulos

Is it the FOV or the focal length value that you're seeing get smaller? If it's the focal length value then that would make sense, since it's inversely proportional to the FOV.

On Mar 5, 2016, at 1:03 PM, Dimitri Diakopoulos [email protected] wrote:

Can you quantify 'smaller' with a number and/or pictures? Since this is happening on both the SDK and librealsense, the best I can do is pass the report to the hardware team and see if they have any thoughts. Does seem odd.

— Reply to this email directly or view it on GitHub.

digitologist avatar Mar 05 '16 21:03 digitologist

All - I'm attaching screenshots of the same scene with and without depth enabled. Pay attention to the IR. The margin on the book's right-hand side shrinks when depth is disabled, meaning the FOV shrinks. It appears there is a different radial-distortion function running on the IR when depth is disabled. But all I changed was to enable/disable depth and didn't touch IR settings. I would expect to get the raw IR (=distorted IR). But in any case, it should be unaffected by the depth enbled/disabled setting.

ddiakopoulos - I'd be grateful if you could relay this to the relevant engineers.

I also posted a related question here: https://software.intel.com/en-us/forums/realsense/topic/611339

Thank you!

ir_with_depth_enabled

ir_with_depth_disabled

avivhu avatar Mar 06 '16 08:03 avivhu

Hi @avivhu. I checked in with our camera hardware team and you found a known issue with the SR300 that boils down to a chip-level hardware limitation. From what I understand, the IR image goes through a different hardware path when depth is enabled, and all that silicon is dark when you just ask for the IR image directly. There is an open task to see if it can be fixed in firmware, but it's pretty low priority so I wouldn't count on it. Closing this issue out now, but I will post back here if a fix is ever issued.

ddiakopoulos avatar Mar 10 '16 05:03 ddiakopoulos

ddiakopoulos -

Many thanks for looking into it!

  • Aviv

avivhu avatar Mar 10 '16 14:03 avivhu