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
Set the descriptor extractor.
Definition at line 179 of file frame.cpp.
Set the feature detector.
Definition at line 174 of file frame.cpp.
Set up a monocular frame from the passed in OpenCV image and fill the given frame.
- Parameters:
-
frame | The frame to process. |
img | Monocular image to process. |
img | Monocular image to process. |
Definition at line 185 of file frame.cpp.
Set up stereo frame, assumes frame has camera parameters already set.
- Parameters:
-
frame | The frame to be processed. |
img | Left camera image. |
imgr | Right camera image. |
nfrac | Fractional 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.
Set up stereo frame, assumes frame has camera parameters already set.
- Parameters:
-
frame | The frame to be processed. |
img | Left camera image. |
imgr | Right camera image. |
nfrac | Fractional disparity. If above 0, then imgr is a disparity image instead. |
mask | ROI for left image |
setPointCloud. | True if point cloud is to be set up from disparities |
Definition at line 205 of file frame.cpp.
Do stereo processing on the frame, assuming descriptors and extractors are already set.
- Parameters:
-
frame | The frame to process. |
nfrac | Fractional 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
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.
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: