81 [[nodiscard]]
auto Execute(
const std::uint8_t *leftImageData, std::size_t leftImageStride,
const std::uint8_t *rightImageData, std::size_t rightImageStride)
noexcept ->
Status;
121 [[nodiscard]]
auto RetrieveRectifiedImages(std::uint8_t *leftImageData, std::size_t leftImageStride, std::uint8_t *rightImageData, std::size_t rightImageStride)
noexcept ->
Status;
161 auto impl() noexcept -> Impl *;
162 [[nodiscard]] auto impl() const noexcept -> const Impl *;
163 static constexpr std::
size_t BufferSize{2048};
164 alignas(
alignof(std::max_align_t)) std::array<unsigned char, BufferSize> buffer_{};
#define RETINIFY_API
Defines a macro for setting API visibility to "default" for the retinify library.
Definition attributes.hpp:8
auto RetrieveDisparity(float *disparityData, std::size_t disparityStride) noexcept -> Status
Retrieves the computed disparity map.
auto RetrieveRectifiedRightImage(std::uint8_t *rightImageData, std::size_t rightImageStride) noexcept -> Status
Retrieves the rectified right image.
auto RetrieveDepth(float *depthData, std::size_t depthStride) noexcept -> Status
Retrieves the computed depth map.
auto Initialize(std::uint32_t imageWidth, std::uint32_t imageHeight, PixelFormat pixelFormat=PixelFormat::RGB8, DepthMode depthMode=DepthMode::ACCURATE, const CalibrationParameters &calibrationParameters=CalibrationParameters{}) noexcept -> Status
Initializes the stereo matching pipeline with the given image dimensions.
auto RetrieveRectifiedLeftImage(std::uint8_t *leftImageData, std::size_t leftImageStride) noexcept -> Status
Retrieves the rectified left image.
auto RetrieveRectifiedImages(std::uint8_t *leftImageData, std::size_t leftImageStride, std::uint8_t *rightImageData, std::size_t rightImageStride) noexcept -> Status
Retrieves the rectified left and right images.
auto RetrievePointCloud(float *pointCloudData, std::size_t pointCloudStride) noexcept -> Status
Reprojects the computed disparity map to a 3D point cloud.
auto Execute(const std::uint8_t *leftImageData, std::size_t leftImageStride, const std::uint8_t *rightImageData, std::size_t rightImageStride) noexcept -> Status
Executes the stereo matching pipeline using the given left and right image data.
This class represents the status of an operation in the retinify library.
Definition status.hpp:51
Definition colormap.hpp:13
PixelFormat
The pixel format options for input images.
Definition pipeline.hpp:19
@ RGB8
8-bit 3ch, RGB format
Definition pipeline.hpp:25
@ GRAY8
8-bit 1ch, Grayscale format
Definition pipeline.hpp:22
DepthMode
The depth mode options for stereo matching pipeline.
Definition pipeline.hpp:31
@ BALANCED
Balanced, with moderate accuracy and speed.
Definition pipeline.hpp:37
@ ACCURATE
Most accurate, with slowest performance.
Definition pipeline.hpp:40
@ FAST
Fastest, with lowest accuracy.
Definition pipeline.hpp:34
Stereo camera calibration parameters.
Definition geometry.hpp:266