68 [[nodiscard]] auto Initialize(std::uint32_t imageWidth, std::uint32_t imageHeight,
89 [[nodiscard]]
auto Run(
const std::uint8_t *leftImageData, std::size_t leftImageStride,
90 const std::uint8_t *rightImageData, std::size_t rightImageStride,
91 float *disparityData, std::size_t disparityStride)
noexcept ->
Status;
107 [[nodiscard]]
auto Execute(
const std::uint8_t *leftImageData, std::size_t leftImageStride,
108 const std::uint8_t *rightImageData, std::size_t rightImageStride)
noexcept ->
Status;
149 std::uint8_t *rightImageData, std::size_t rightImageStride)
noexcept ->
Status;
189 auto impl() noexcept -> Impl *;
190 [[nodiscard]] auto impl() const noexcept -> const Impl *;
191 static constexpr std::
size_t BufferSize{2048};
192 alignas(
alignof(std::max_align_t)) std::array<unsigned char, BufferSize> buffer_{};
#define RETINIFY_DEPRECATED(message)
Defines a macro to mark functions as deprecated with a custom message.
Definition attributes.hpp:12
#define RETINIFY_API
Defines a macro for setting API visibility to "default" for the retinify library.
Definition attributes.hpp:8
A retinify::Pipeline provides an interface for running a stereo matching.
Definition pipeline.hpp:45
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 Run(const std::uint8_t *leftImageData, std::size_t leftImageStride, const std::uint8_t *rightImageData, std::size_t rightImageStride, float *disparityData, std::size_t disparityStride) noexcept -> Status
Executes the stereo matching pipeline using the given left and right image data.
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:18
@ RGB8
8-bit 3ch, RGB format
@ GRAY8
8-bit 1ch, Grayscale format
DepthMode
The depth mode options for stereo matching pipeline.
Definition pipeline.hpp:30
@ BALANCED
Balanced, with moderate accuracy and speed.
@ ACCURATE
Most accurate, with slowest performance.
@ FAST
Fastest, with lowest accuracy.
Stereo camera calibration parameters.
Definition geometry.hpp:288