From 688a242d3101004699f2c370e82c213984b4635c Mon Sep 17 00:00:00 2001 From: Erol444 Date: Wed, 21 Feb 2024 11:56:41 +0100 Subject: [PATCH 1/3] Updating docs for stereo depth video --- docs/source/samples/StereoDepth/stereo_depth_video.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/source/samples/StereoDepth/stereo_depth_video.rst b/docs/source/samples/StereoDepth/stereo_depth_video.rst index 7b2d7e496..de005a50c 100644 --- a/docs/source/samples/StereoDepth/stereo_depth_video.rst +++ b/docs/source/samples/StereoDepth/stereo_depth_video.rst @@ -11,6 +11,14 @@ inside the code: #. `extended`: suitable for short range objects. For more information `click here `__ #. `subpixel`: suitable for long range. For more information `click here `__ +Stereo Alpha Param +################## + +With `--alpha` you can select how much cropping will be done when rectifying the image, which is useful with Wide FOV OAK cameras. By default it's 0.0, which is cropping the most, so all points have valid disparity. +If you set it to 1.0, there will be no cropping, but the disparity will be valid only in the center and corners of the image (invalid at the sides). + + + .. rubric:: Similar samples: - :ref:`Depth Preview` From c838ab693d09334b952a38ce3a824f3e9b4abe21 Mon Sep 17 00:00:00 2001 From: Erol444 Date: Wed, 21 Feb 2024 12:01:01 +0100 Subject: [PATCH 2/3] Added demo image --- docs/source/samples/StereoDepth/stereo_depth_video.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/samples/StereoDepth/stereo_depth_video.rst b/docs/source/samples/StereoDepth/stereo_depth_video.rst index de005a50c..765247754 100644 --- a/docs/source/samples/StereoDepth/stereo_depth_video.rst +++ b/docs/source/samples/StereoDepth/stereo_depth_video.rst @@ -17,7 +17,7 @@ Stereo Alpha Param With `--alpha` you can select how much cropping will be done when rectifying the image, which is useful with Wide FOV OAK cameras. By default it's 0.0, which is cropping the most, so all points have valid disparity. If you set it to 1.0, there will be no cropping, but the disparity will be valid only in the center and corners of the image (invalid at the sides). - +.. image:: https://github.com/luxonis/depthai-python/assets/18037362/887d489a-6bf6-41ac-9b8f-06ab7b0cd488 .. rubric:: Similar samples: From f4aad165a117a9d885d03959c3617d4de99729aa Mon Sep 17 00:00:00 2001 From: Erol444 Date: Wed, 21 Feb 2024 17:50:17 +0100 Subject: [PATCH 3/3] Update stereo alpha param --- docs/source/samples/StereoDepth/stereo_depth_video.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/source/samples/StereoDepth/stereo_depth_video.rst b/docs/source/samples/StereoDepth/stereo_depth_video.rst index 765247754..3ea27e03a 100644 --- a/docs/source/samples/StereoDepth/stereo_depth_video.rst +++ b/docs/source/samples/StereoDepth/stereo_depth_video.rst @@ -14,8 +14,10 @@ inside the code: Stereo Alpha Param ################## -With `--alpha` you can select how much cropping will be done when rectifying the image, which is useful with Wide FOV OAK cameras. By default it's 0.0, which is cropping the most, so all points have valid disparity. -If you set it to 1.0, there will be no cropping, but the disparity will be valid only in the center and corners of the image (invalid at the sides). +With `--alpha` you can select scaling during the rectification. Values between 0 and 1: + +- 0.0 (default value) means that the rectified images are zoomed and shifted so that only valid pixels are visible (no black areas after rectification) +- 1.0 means that the rectified image is decimated and shifted so that all the pixels from the original images from the cameras are retained in the rectified images (no source image pixels are lost). .. image:: https://github.com/luxonis/depthai-python/assets/18037362/887d489a-6bf6-41ac-9b8f-06ab7b0cd488