diff --git a/docs/source/components/nodes/spatial_location_calculator.rst b/docs/source/components/nodes/spatial_location_calculator.rst index 6024652c9..0d1d5f4e0 100644 --- a/docs/source/components/nodes/spatial_location_calculator.rst +++ b/docs/source/components/nodes/spatial_location_calculator.rst @@ -1,8 +1,13 @@ SpatialLocationCalculator ========================= -SpatialLocationCalculator will calculate the depth based on the :code:`depth` map from the :code:`inputDepth` and ROI (region-of-interest) -provided from the :code:`inputConfig`. It will average the depth values in the ROI and remove the ones out of range. +**SpatialLocationCalculator node** calculates the spatial coordinates of the ROI (region-of-interest) based on the +:code:`depth` map from the :code:`inputDepth`. It will average the depth values in the ROI and remove the ones out of range. + +You can also calculate spatial coordiantes on host side, `demo here `__. +The demo also has the same logic that's performed on the device (:code:`calc.py` file). + +.. image:: https://user-images.githubusercontent.com/18037362/146296930-9e7071f5-33b9-45f9-af21-cace7ffffc0f.gif How to place it ############### diff --git a/docs/source/samples/ImageManip/rgb_rotate_warp.rst b/docs/source/samples/ImageManip/rgb_rotate_warp.rst index a07896707..4c02478df 100644 --- a/docs/source/samples/ImageManip/rgb_rotate_warp.rst +++ b/docs/source/samples/ImageManip/rgb_rotate_warp.rst @@ -12,11 +12,17 @@ Setup Demo #### -.. raw:: html +.. image:: https://user-images.githubusercontent.com/18037362/152208899-461fa163-42ec-4922-84b5-5cd09332ea32.png + +.. code-block:: + + === Controls: + z -rotated rectangle crop, decrease rate + x -rotated rectangle crop, increase rate + c -warp 4-point transform, cycle through modes + v -resize cropped region, or disable resize + h -print controls (help) -
- -
Source code ########### diff --git a/docs/source/samples/SpatialDetection/spatial_location_calculator.rst b/docs/source/samples/SpatialDetection/spatial_location_calculator.rst index e5cdc455b..591d40794 100644 --- a/docs/source/samples/SpatialDetection/spatial_location_calculator.rst +++ b/docs/source/samples/SpatialDetection/spatial_location_calculator.rst @@ -4,7 +4,7 @@ Spatial location calculator This example shows how to retrieve spatial location data (X,Y,Z) on a runtime configurable ROI. You can move the ROI using WASD keys. X,Y,Z coordinates are relative to the center of depth map. -setConfidenceThreshold - confidence threshold above which objects are detected +You can also calculate spatial coordiantes on host side, `demo here `__. .. rubric:: Similar samples: @@ -16,11 +16,7 @@ setConfidenceThreshold - confidence threshold above which objects are detected Demo #### -.. raw:: html - -
- -
+.. image:: https://user-images.githubusercontent.com/18037362/146296930-9e7071f5-33b9-45f9-af21-cace7ffffc0f.gif Setup #####