Solar
|
Specify the IRGBDCamera interface class. More...
#include <IRGBDCamera.h>
Public Member Functions | |
IRGBDCamera ()=default | |
Specify the IRGBDCamera constructor class. | |
virtual | ~IRGBDCamera ()=default |
Specify the IRGBDCamera destructor class. | |
virtual FrameworkReturnCode | getNextRGBDFrame (SRef< SolAR::datastructure::Image > &colorImg, SRef< SolAR::datastructure::Image > &depthImg)=0 |
Provides the last color image, depth image, corresponding 3D point cloud, and aligned images (RGB on depth and depth on RGB). If output parameters are null (nullptr), it means that the implementation, or the requested mode does not provide this feature. More... | |
virtual FrameworkReturnCode | alignDepthToColor (SRef< SolAR::datastructure::Image > &alignedDepthImg) const =0 |
Provides a depth image alingned on the color image. More... | |
virtual FrameworkReturnCode | alignColorToDepth (SRef< SolAR::datastructure::Image > &alignedColorImg) const =0 |
Provides a color image alingned on the depth image. More... | |
virtual SolAR::datastructure::Point3Df | getPixelToWorld (const SolAR::datastructure::Point2Di &inPixel) const =0 |
Provides the 3D point in the depth sensor coordinate system corresponding to a given pixel of the color image. More... | |
virtual SolAR::datastructure::Point2Di | getWorldToPixel (const SolAR::datastructure::CloudPoint &in3DPoint) const =0 |
Provides the pixel of the color image to the projection of a given 3D point. More... | |
virtual std::vector< SolAR::datastructure::Point2Df > | getWorldToPixels (const std::vector< SRef< SolAR::datastructure::CloudPoint > > &in3DPoints) const =0 |
Provides the pixels of the color image to the projection of given 3D points. More... | |
Public Member Functions inherited from SolAR::api::input::devices::ICamera | |
ICamera ()=default | |
Specify the ICamera constructor class. | |
virtual | ~ICamera ()=default |
Specify the ICamera destructor class. | |
virtual FrameworkReturnCode | getNextImage (SRef< SolAR::datastructure::Image > &img)=0 |
Fill the SRef img buffer with a new image captured by the camera device. More... | |
virtual void | setResolution (const SolAR::datastructure::Sizei &resolution)=0 |
Set the acquisition device image resolution. More... | |
virtual void | setIntrinsicParameters (const SolAR::datastructure::CamCalibration &intrinsic_parameters)=0 |
Set the intrinsic camera parameters. More... | |
virtual void | setDistortionParameters (const SolAR::datastructure::CamDistortion &distortion_parameters)=0 |
Set the distortion camera parameters. More... | |
virtual void | setParameters (const SolAR::datastructure::CameraParameters ¶meters)=0 |
Set the distortion and intrinsic camera parameters. More... | |
virtual SolAR::datastructure::Sizei | getResolution () const =0 |
Get the acquisition device image resolution. More... | |
virtual const SolAR::datastructure::CamCalibration & | getIntrinsicsParameters () const =0 |
Get the intrinsic camera parameters. More... | |
virtual const SolAR::datastructure::CameraParameters & | getParameters () const =0 |
Get the camera parameters. More... | |
virtual const SolAR::datastructure::CamDistortion & | getDistortionParameters () const =0 |
Get the distortion camera lens parameters. More... | |
Public Member Functions inherited from SolAR::api::input::devices::IDevice | |
IDevice ()=default | |
Specify the IDevice constructor class. | |
virtual | ~IDevice () override=default |
Specify the IDevice destructor class. | |
virtual FrameworkReturnCode | start ()=0 |
Start the acquisition device referenced by its device_id. More... | |
virtual FrameworkReturnCode | stop ()=0 |
Stop the acquisition device. More... | |
Public Member Functions inherited from SolAR::api::input::devices::IDepthCamera | |
IDepthCamera ()=default | |
Specify the IDepthCamera constructor class. | |
virtual | ~IDepthCamera ()=default |
Specify the IDepthCamera destructor class. | |
virtual FrameworkReturnCode | getNextDepthFrame (SRef< SolAR::datastructure::Image > &img)=0 |
Provides the last depth image. If output parameters are null (nullptr), it means that the implementation, or the requested mode does not provide this feature. More... | |
virtual FrameworkReturnCode | getPointCloud (SRef< SolAR::datastructure::PointCloud > &pc)=0 |
Provides the corresponding 3D point cloud corresponding to last depth image aquiered (getNextDepthFrame()) Should have no effect if the user didn't call getNextDepthFrame beforehand. More... | |
virtual FrameworkReturnCode | setDepthResolution (SolAR::datastructure::Sizei resolution)=0 |
Set the depth image resolution of the acquisition device. More... | |
virtual FrameworkReturnCode | setIntrinsicDepthParameters (const SolAR::datastructure::CamCalibration &intrinsic_parameters)=0 |
Set the intrinsic parameters of the depth camera. More... | |
virtual FrameworkReturnCode | setDistortionDepthParameters (const SolAR::datastructure::CamDistortion &distortion_parameters)=0 |
Set the distortion intrinsic parameters of the depth camera. More... | |
virtual SolAR::datastructure::Sizei | getDepthResolution () const =0 |
Get the image resolution of the depth acquisition device. More... | |
virtual float | getDepthMinDistance () const =0 |
Get the min acquisition distance of the device. More... | |
virtual const SolAR::datastructure::CamCalibration & | getIntrinsicsDepthParameters () const =0 |
Get the intrinsic depth of the device. More... | |
virtual const SolAR::datastructure::CamDistortion & | getDistortionDepthParameters () const =0 |
Get the distortion depth of the camera lens. More... | |
Specify the IRGBDCamera interface class.
This class describes the interface of a RGBD camera capture device.
|
pure virtual |
Provides a color image alingned on the depth image.
[in,out] | alignedColorImg | the RGB image captured by the RGBD camera and aligned on the depth image |
|
pure virtual |
Provides a depth image alingned on the color image.
[in,out] | alignedDepthImg | the depth image captured by the RGBD camera and aligned on the color image |
|
pure virtual |
Provides the last color image, depth image, corresponding 3D point cloud, and aligned images (RGB on depth and depth on RGB). If output parameters are null (nullptr), it means that the implementation, or the requested mode does not provide this feature.
[in,out] | colorImg | the RGB image captured by the RGBD camera |
[in,out] | depthImg | the depth image captured by the RGBD camera |
|
pure virtual |
Provides the 3D point in the depth sensor coordinate system corresponding to a given pixel of the color image.
[in] | inPixel | The pixel for which we want the 3 position |
|
pure virtual |
Provides the pixel of the color image to the projection of a given 3D point.
[in] | in3DPoint | The 3D point we want to project on the color image |
|
pure virtual |
Provides the pixels of the color image to the projection of given 3D points.
[in] | in3DPoints | The 3D points we want to project on the color image |