OpenCV453
クラス | 関数
RGB-Depth Processing

クラス

class  cv::rgbd::RgbdNormals
 
class  cv::rgbd::DepthCleaner
 
class  cv::rgbd::RgbdPlane
 
struct  cv::rgbd::RgbdFrame
 
struct  cv::rgbd::OdometryFrame
 
class  cv::rgbd::Odometry
 
class  cv::rgbd::RgbdOdometry
 
class  cv::rgbd::ICPOdometry
 
class  cv::rgbd::RgbdICPOdometry
 
class  cv::rgbd::FastICPOdometry
 
struct  cv::linemod::Feature
 Discriminant feature described by its location and label. [詳解]
 
struct  cv::linemod::Template
 
class  cv::linemod::QuantizedPyramid
 Represents a modality operating over an image pyramid. [詳解]
 
class  cv::linemod::Modality
 Interface for modalities that plug into the LINE template matching representation. [詳解]
 
class  cv::linemod::ColorGradient
 Modality that computes quantized gradient orientations from a color image. [詳解]
 
class  cv::linemod::DepthNormal
 Modality that computes quantized surface normals from a dense depth map. [詳解]
 
struct  cv::linemod::Match
 Represents a successful template match. [詳解]
 
class  cv::linemod::Detector
 Object detector using the LINE template matching algorithm with any set of modalities. [詳解]
 

関数

CV_EXPORTS bool cv::rgbd::isValidDepth (const float &depth)
 
CV_EXPORTS bool cv::rgbd::isValidDepth (const double &depth)
 
CV_EXPORTS bool cv::rgbd::isValidDepth (const short int &depth)
 
CV_EXPORTS bool cv::rgbd::isValidDepth (const unsigned short int &depth)
 
CV_EXPORTS bool cv::rgbd::isValidDepth (const int &depth)
 
CV_EXPORTS bool cv::rgbd::isValidDepth (const unsigned int &depth)
 
CV_EXPORTS_W void cv::rgbd::registerDepth (InputArray unregisteredCameraMatrix, InputArray registeredCameraMatrix, InputArray registeredDistCoeffs, InputArray Rt, InputArray unregisteredDepth, const Size &outputImagePlaneSize, OutputArray registeredDepth, bool depthDilation=false)
 
CV_EXPORTS_W void cv::rgbd::depthTo3dSparse (InputArray depth, InputArray in_K, InputArray in_points, OutputArray points3d)
 
CV_EXPORTS_W void cv::rgbd::depthTo3d (InputArray depth, InputArray K, OutputArray points3d, InputArray mask=noArray())
 
CV_EXPORTS_W void cv::rgbd::rescaleDepth (InputArray in, int depth, OutputArray out, double depth_factor=1000.0)
 
CV_EXPORTS_W void cv::rgbd::warpFrame (const Mat &image, const Mat &depth, const Mat &mask, const Mat &Rt, const Mat &cameraMatrix, const Mat &distCoeff, OutputArray warpedImage, OutputArray warpedDepth=noArray(), OutputArray warpedMask=noArray())
 
CV_EXPORTS_W void cv::linemod::colormap (const Mat &quantized, CV_OUT Mat &dst)
 Debug function to colormap a quantized image for viewing.
 
CV_EXPORTS_W void cv::linemod::drawFeatures (InputOutputArray img, const std::vector< Template > &templates, const Point2i &tl, int size=10)
 Debug function to draw linemod features [詳解]
 
CV_EXPORTS_W Ptr< linemod::Detectorcv::linemod::getDefaultLINE ()
 Factory function for detector using LINE algorithm with color gradients. [詳解]
 
CV_EXPORTS_W Ptr< linemod::Detectorcv::linemod::getDefaultLINEMOD ()
 Factory function for detector using LINE-MOD algorithm with color gradients and depth normals. [詳解]
 
CV_WRAP cv::linemod::Feature::Feature (int x, int y, int label)
 
 cv::linemod::QuantizedPyramid::Candidate::Candidate (int x, int y, int label, float score)
 
CV_WRAP cv::linemod::Match::Match (int x, int y, float similarity, const String &class_id, int template_id)
 

詳解

kinfu_icp

関数詳解

◆ depthTo3d()

CV_EXPORTS_W void cv::rgbd::depthTo3d ( InputArray  depth,
InputArray  K,
OutputArray  points3d,
InputArray  mask = noArray() 
)

Converts a depth image to an organized set of 3d points. The coordinate system is x pointing left, y down and z away from the camera

引数
depththe depth image (if given as short int CV_U, it is assumed to be the depth in millimeters (as done with the Microsoft Kinect), otherwise, if given as CV_32F or CV_64F, it is assumed in meters)
KThe calibration matrix
points3dthe resulting 3d points. They are of depth the same as depth if it is CV_32F or CV_64F, and the depth of K if depth is of depth CV_U
maskthe mask of the points to consider (can be empty)

◆ depthTo3dSparse()

CV_EXPORTS_W void cv::rgbd::depthTo3dSparse ( InputArray  depth,
InputArray  in_K,
InputArray  in_points,
OutputArray  points3d 
)
引数
depththe depth image
in_K
in_pointsthe list of xy coordinates
points3dthe resulting 3d points

◆ drawFeatures()

CV_EXPORTS_W void cv::linemod::drawFeatures ( InputOutputArray  img,
const std::vector< Template > &  templates,
const Point2i tl,
int  size = 10 
)

Debug function to draw linemod features

引数
img
templatessee Detector::addTemplate
tltemplate bbox top-left offset see Detector::addTemplate
sizemarker size see cv::drawMarker

◆ getDefaultLINE()

CV_EXPORTS_W Ptr< linemod::Detector > cv::linemod::getDefaultLINE ( )

Factory function for detector using LINE algorithm with color gradients.

Default parameter settings suitable for VGA images.

◆ getDefaultLINEMOD()

CV_EXPORTS_W Ptr< linemod::Detector > cv::linemod::getDefaultLINEMOD ( )

Factory function for detector using LINE-MOD algorithm with color gradients and depth normals.

Default parameter settings suitable for VGA images.

◆ isValidDepth()

CV_EXPORTS bool cv::rgbd::isValidDepth ( const float &  depth)
inline

Checks if the value is a valid depth. For CV_16U or CV_16S, the convention is to be invalid if it is a limit. For a float/double, we just check if it is a NaN

引数
depththe depth to check for validity

◆ registerDepth()

CV_EXPORTS_W void cv::rgbd::registerDepth ( InputArray  unregisteredCameraMatrix,
InputArray  registeredCameraMatrix,
InputArray  registeredDistCoeffs,
InputArray  Rt,
InputArray  unregisteredDepth,
const Size outputImagePlaneSize,
OutputArray  registeredDepth,
bool  depthDilation = false 
)

Registers depth data to an external camera Registration is performed by creating a depth cloud, transforming the cloud by the rigid body transformation between the cameras, and then projecting the transformed points into the RGB camera.

uv_rgb = K_rgb * [R | t] * z * inv(K_ir) * uv_ir

Currently does not check for negative depth values.

引数
unregisteredCameraMatrixthe camera matrix of the depth camera
registeredCameraMatrixthe camera matrix of the external camera
registeredDistCoeffsthe distortion coefficients of the external camera
Rtthe rigid body transform between the cameras. Transforms points from depth camera frame to external camera frame.
unregisteredDepththe input depth data
outputImagePlaneSizethe image plane dimensions of the external camera (width, height)
registeredDepththe result of transforming the depth into the external camera
depthDilationwhether or not the depth is dilated to avoid holes and occlusion errors (optional)

◆ rescaleDepth()

CV_EXPORTS_W void cv::rgbd::rescaleDepth ( InputArray  in,
int  depth,
OutputArray  out,
double  depth_factor = 1000.0 
)

If the input image is of type CV_16UC1 (like the Kinect one), the image is converted to floats, divided by depth_factor to get a depth in meters, and the values 0 are converted to std::numeric_limits<float>::quiet_NaN() Otherwise, the image is simply converted to floats

引数
inthe depth image (if given as short int CV_U, it is assumed to be the depth in millimeters (as done with the Microsoft Kinect), it is assumed in meters)
depththe desired output depth (floats or double)
outThe rescaled float depth image
depth_factor(optional) factor by which depth is converted to distance (by default = 1000.0 for Kinect sensor)

◆ warpFrame()

CV_EXPORTS_W void cv::rgbd::warpFrame ( const Mat image,
const Mat depth,
const Mat mask,
const Mat Rt,
const Mat cameraMatrix,
const Mat distCoeff,
OutputArray  warpedImage,
OutputArray  warpedDepth = noArray(),
OutputArray  warpedMask = noArray() 
)

Warp the image: compute 3d points from the depth, transform them using given transformation, then project color point cloud to an image plane. This function can be used to visualize results of the Odometry algorithm.

引数
imageThe image (of CV_8UC1 or CV_8UC3 type)
depthThe depth (of type used in depthTo3d fuction)
maskThe mask of used pixels (of CV_8UC1), it can be empty
RtThe transformation that will be applied to the 3d points computed from the depth
cameraMatrixCamera matrix
distCoeffDistortion coefficients
warpedImageThe warped image.
warpedDepthThe warped depth.
warpedMaskThe warped mask.