retinify 0.1.7
Real-Time AI Stereo Vision Library
Loading...
Searching...
No Matches
retinify::Pipeline Class Reference

A retinify::Pipeline provides an interface for running a stereo matching. More...

#include <pipeline.hpp>

Public Member Functions

 Pipeline () noexcept
 
 ~Pipeline () noexcept
 
 Pipeline (const Pipeline &)=delete
 
auto operator= (const Pipeline &) noexcept -> Pipeline &=delete
 
 Pipeline (Pipeline &&) noexcept=delete
 
auto operator= (Pipeline &&) noexcept -> Pipeline &=delete
 
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 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 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.
 
auto RetrieveRectifiedLeftImage (std::uint8_t *leftImageData, std::size_t leftImageStride) noexcept -> Status
 Retrieves the rectified left image.
 
auto RetrieveRectifiedRightImage (std::uint8_t *rightImageData, std::size_t rightImageStride) noexcept -> Status
 Retrieves the rectified right 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 RetrieveDisparity (float *disparityData, std::size_t disparityStride) noexcept -> Status
 Retrieves the computed disparity map.
 
auto RetrieveDepth (float *depthData, std::size_t depthStride) noexcept -> Status
 Retrieves the computed depth map.
 
auto RetrievePointCloud (float *pointCloudData, std::size_t pointCloudStride) noexcept -> Status
 Reprojects the computed disparity map to a 3D point cloud.
 

Detailed Description

A retinify::Pipeline provides an interface for running a stereo matching.

Constructor & Destructor Documentation

◆ Pipeline() [1/3]

retinify::Pipeline::Pipeline ( )
noexcept

◆ ~Pipeline()

retinify::Pipeline::~Pipeline ( )
noexcept

◆ Pipeline() [2/3]

retinify::Pipeline::Pipeline ( const Pipeline )
delete

◆ Pipeline() [3/3]

retinify::Pipeline::Pipeline ( Pipeline &&  )
deletenoexcept

Member Function Documentation

◆ Execute()

auto retinify::Pipeline::Execute ( const std::uint8_t *  leftImageData,
std::size_t  leftImageStride,
const std::uint8_t *  rightImageData,
std::size_t  rightImageStride 
) -> Status
noexcept

Executes the stereo matching pipeline using the given left and right image data.

Parameters
leftImageDataPointer to the left image data
leftImageStrideStride of a row in the left image (in bytes)
rightImageDataPointer to the right image data
rightImageStrideStride of a row in the right image (in bytes)
Returns
A Status object that indicates whether the operation was successful
Note
This function must be called after Initialize()

◆ Initialize()

auto retinify::Pipeline::Initialize ( std::uint32_t  imageWidth,
std::uint32_t  imageHeight,
PixelFormat  pixelFormat = PixelFormat::RGB8,
DepthMode  depthMode = DepthMode::ACCURATE,
const CalibrationParameters calibrationParameters = CalibrationParameters{} 
) -> Status
noexcept

Initializes the stereo matching pipeline with the given image dimensions.

Parameters
imageWidthWidth of the input images (in pixels)
imageHeightHeight of the input images (in pixels)
pixelFormatThe pixel format of the input images
depthModeThe depth mode option for the stereo matching
calibrationParametersThe stereo camera calibration parameters
Returns
A Status object that indicates whether the operation was successful

◆ operator=() [1/2]

auto retinify::Pipeline::operator= ( const Pipeline ) -> Pipeline &=delete
deletenoexcept

◆ operator=() [2/2]

auto retinify::Pipeline::operator= ( Pipeline &&  ) -> Pipeline &=delete
deletenoexcept

◆ RetrieveDepth()

auto retinify::Pipeline::RetrieveDepth ( float *  depthData,
std::size_t  depthStride 
) -> Status
noexcept

Retrieves the computed depth map.

Parameters
depthDataPointer to the output buffer for depth data (32-bit float)
depthStrideStride of a row in the output depth data (in bytes)
Returns
A Status object that indicates whether the operation was successful
Note
This function must be called after Execute()

◆ RetrieveDisparity()

auto retinify::Pipeline::RetrieveDisparity ( float *  disparityData,
std::size_t  disparityStride 
) -> Status
noexcept

Retrieves the computed disparity map.

Parameters
disparityDataPointer to the output buffer for disparity data (32-bit float)
disparityStrideStride of a row in the output disparity data (in bytes)
Returns
A Status object that indicates whether the operation was successful
Note
This function must be called after Execute()

◆ RetrievePointCloud()

auto retinify::Pipeline::RetrievePointCloud ( float *  pointCloudData,
std::size_t  pointCloudStride 
) -> Status
noexcept

Reprojects the computed disparity map to a 3D point cloud.

Parameters
pointCloudDataPointer to the output buffer for point cloud data (32-bit float, 3 channels)
pointCloudStrideStride of a row in the output point cloud buffer (in bytes)
Returns
A Status object that indicates whether the operation was successful
Note
This function must be called after Execute()

◆ RetrieveRectifiedImages()

auto retinify::Pipeline::RetrieveRectifiedImages ( std::uint8_t *  leftImageData,
std::size_t  leftImageStride,
std::uint8_t *  rightImageData,
std::size_t  rightImageStride 
) -> Status
noexcept

Retrieves the rectified left and right images.

Parameters
leftImageDataPointer to the output buffer for left image data (8-bit unsigned char)
leftImageStrideStride of a row in the output left image data (in bytes)
rightImageDataPointer to the output buffer for right image data (8-bit unsigned char)
rightImageStrideStride of a row in the output right image data (in bytes)
Returns
A Status object that indicates whether the operation was successful
Note
This function must be called after Execute()

◆ RetrieveRectifiedLeftImage()

auto retinify::Pipeline::RetrieveRectifiedLeftImage ( std::uint8_t *  leftImageData,
std::size_t  leftImageStride 
) -> Status
noexcept

Retrieves the rectified left image.

Parameters
leftImageDataPointer to the output buffer for left image data (8-bit unsigned char)
leftImageStrideStride of a row in the output left image data (in bytes)
Returns
A Status object that indicates whether the operation was successful
Note
This function must be called after Execute()

◆ RetrieveRectifiedRightImage()

auto retinify::Pipeline::RetrieveRectifiedRightImage ( std::uint8_t *  rightImageData,
std::size_t  rightImageStride 
) -> Status
noexcept

Retrieves the rectified right image.

Parameters
rightImageDataPointer to the output buffer for right image data (8-bit unsigned char)
rightImageStrideStride of a row in the output right image data (in bytes)
Returns
A Status object that indicates whether the operation was successful
Note
This function must be called after Execute()

◆ Run()

auto retinify::Pipeline::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 
) -> Status
noexcept

Executes the stereo matching pipeline using the given left and right image data.

Parameters
leftImageDataPointer to the left image data
leftImageStrideStride of a row in the left image (in bytes)
rightImageDataPointer to the right image data
rightImageStrideStride of a row in the right image (in bytes)
disparityDataPointer to the output buffer for disparity data (32-bit float)
disparityStrideStride of a row in the output disparity data (in bytes)
Returns
A Status object that indicates whether the operation was successful

The documentation for this class was generated from the following file: