Skip to content

Commit

Permalink
Change metre to meter
Browse files Browse the repository at this point in the history
  • Loading branch information
SzabolcsGergely committed Mar 22, 2022
1 parent afdedb1 commit 14eb244
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace dai {
/**
* SpatialLocation configuration thresholds structure
*
* Contains configuration data for lower and upper threshold in depth units (millimetre by default) for ROI.
* Contains configuration data for lower and upper threshold in depth units (millimeter by default) for ROI.
* Values outside of threshold range will be ignored when calculating spatial coordinates from depth map.
*/
struct SpatialLocationCalculatorConfigThresholds {
Expand Down
2 changes: 1 addition & 1 deletion include/depthai-shared/datatype/RawSpatialLocations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace dai {
*
* Contains configuration data, average depth for the calculated ROI on depth map.
* Together with spatial coordinates: x,y,z relative to the center of depth map.
* Units are in depth units (millimetre by default).
* Units are in depth units (millimeter by default).
*/
struct SpatialLocations {
/**
Expand Down
8 changes: 4 additions & 4 deletions include/depthai-shared/datatype/RawStereoDepthConfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct RawStereoDepthConfig : public RawBuffer {
/**
* Measurement unit for depth data
*/
enum class DepthUnit : int32_t { METRE, CENTIMETRE, MILLIMETRE, INCH, FOOT, CUSTOM };
enum class DepthUnit : int32_t { METER, CENTIMETER, MILLIMETER, INCH, FOOT, CUSTOM };

/**
* Set the disparity/depth alignment to the perspective of a rectified output, or center it
Expand All @@ -38,11 +38,11 @@ struct RawStereoDepthConfig : public RawBuffer {
* Measurement unit for depth data.
* Depth data is integer value, multiple of depth unit.
*/
DepthUnit depthUnit = DepthUnit::MILLIMETRE;
DepthUnit depthUnit = DepthUnit::MILLIMETER;

/**
* Custom depth unit multiplier, if custom depth unit is enabled, relative to 1 metre.
* A multiplier of 1000 effectively means depth unit in millimetre.
* Custom depth unit multiplier, if custom depth unit is enabled, relative to 1 meter.
* A multiplier of 1000 effectively means depth unit in millimeter.
*/
float customDepthUnitMultiplier = 1000.f;

Expand Down

0 comments on commit 14eb244

Please sign in to comment.