Public Member Functions | Public Attributes
frame_common::FrameProc Class Reference

FrameProc is a processing engine for setting keypoints and descriptors in a frame. More...

#include <frame.h>

List of all members.

Public Member Functions

 FrameProc (int v=25)
void setFrameDescriptor (const cv::Ptr< cv::DescriptorExtractor > &extractor)
 Set the descriptor extractor.
void setFrameDetector (const cv::Ptr< cv::FeatureDetector > &detector)
 Set the feature detector.
void setMonoFrame (Frame &frame, const cv::Mat &img, const cv::Mat &mask=cv::Mat())
 Set up a monocular frame from the passed in OpenCV image and fill the given frame.
void setStereoFrame (Frame &frame, const cv::Mat &img, const cv::Mat &imgr, int nfrac=0, bool setPointCloud=false)
 Set up stereo frame, assumes frame has camera parameters already set.
void setStereoFrame (Frame &frame, const cv::Mat &img, const cv::Mat &imgr, const cv::Mat &left_mask, int nfrac=0, bool setPointCloud=false)
 Set up stereo frame, assumes frame has camera parameters already set.
void setStereoPoints (Frame &frame, int nfrac=0, bool setPointCloud=false)
 Do stereo processing on the frame, assuming descriptors and extractors are already set.

Public Attributes

cv::Ptr< cv::FeatureDetector > detector
 Feature Detector used for finding features in the image.
bool doSparse
 True if using sparse stereo.
cv::Ptr< cv::DescriptorExtractor > extractor
 Descriptor Extractor used for getting descriptors around image features.
int ndisp
 Number of disparities to search.

Detailed Description

FrameProc is a processing engine for setting keypoints and descriptors in a frame.

Definition at line 140 of file frame.h.


Constructor & Destructor Documentation

Create a FrameProc object using FAST feature detector (with a given threshold v) and SURF feature extractor.

Definition at line 160 of file frame.cpp.


Member Function Documentation

void frame_common::FrameProc::setFrameDescriptor ( const cv::Ptr< cv::DescriptorExtractor > &  extractor)

Set the descriptor extractor.

Definition at line 179 of file frame.cpp.

void frame_common::FrameProc::setFrameDetector ( const cv::Ptr< cv::FeatureDetector > &  detector)

Set the feature detector.

Definition at line 174 of file frame.cpp.

void frame_common::FrameProc::setMonoFrame ( Frame frame,
const cv::Mat &  img,
const cv::Mat &  mask = cv::Mat() 
)

Set up a monocular frame from the passed in OpenCV image and fill the given frame.

Parameters:
frameThe frame to process.
imgMonocular image to process.
imgMonocular image to process.

Definition at line 185 of file frame.cpp.

void frame_common::FrameProc::setStereoFrame ( Frame frame,
const cv::Mat &  img,
const cv::Mat &  imgr,
int  nfrac = 0,
bool  setPointCloud = false 
)

Set up stereo frame, assumes frame has camera parameters already set.

Parameters:
frameThe frame to be processed.
imgLeft camera image.
imgrRight camera image.
nfracFractional disparity. If above 0, then imgr is a 16-bit fractional disparity image instead, with <nfrac> counts per pixel disparity
setPointCloud.True if point cloud is to be set up from disparities

Definition at line 218 of file frame.cpp.

void frame_common::FrameProc::setStereoFrame ( Frame frame,
const cv::Mat &  img,
const cv::Mat &  imgr,
const cv::Mat &  left_mask,
int  nfrac = 0,
bool  setPointCloud = false 
)

Set up stereo frame, assumes frame has camera parameters already set.

Parameters:
frameThe frame to be processed.
imgLeft camera image.
imgrRight camera image.
nfracFractional disparity. If above 0, then imgr is a disparity image instead.
maskROI for left image
setPointCloud.True if point cloud is to be set up from disparities

Definition at line 205 of file frame.cpp.

void frame_common::FrameProc::setStereoPoints ( Frame frame,
int  nfrac = 0,
bool  setPointCloud = false 
)

Do stereo processing on the frame, assuming descriptors and extractors are already set.

Parameters:
frameThe frame to process.
nfracFractional disparity. If above 0, then stereo disparities have already been passed in.
setPointCloud.True if point cloud is to be set up from disparities

Definition at line 225 of file frame.cpp.


Member Data Documentation

cv::Ptr<cv::FeatureDetector> frame_common::FrameProc::detector

Feature Detector used for finding features in the image.

Definition at line 148 of file frame.h.

True if using sparse stereo.

Definition at line 172 of file frame.h.

cv::Ptr<cv::DescriptorExtractor> frame_common::FrameProc::extractor

Descriptor Extractor used for getting descriptors around image features.

Definition at line 150 of file frame.h.

Number of disparities to search.

Definition at line 171 of file frame.h.


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


frame_common
Author(s): Kurt Konolige
autogenerated on Thu Jan 2 2014 12:12:04