#include <models.h>
Public Types | |
typedef Model | M |
typedef cv::Mat | T |
Public Member Functions | |
Fit3d (const T &data) | |
int32_t | GetInlierCount (const M &model, double max_error) |
void | GetInliers (const M &model, double max_error, std::vector< uint32_t > &indices) |
virtual bool | GetModel (const std::vector< int32_t > &indices, M &model, double max_error) const =0 |
virtual std::string | GetModelString (M &model) const |
int32_t | Size () const |
Static Public Member Functions | |
static void | CopyTo (const M &src, M &dst) |
Protected Member Functions | |
virtual void | CalculateNorms (const M &model, cv::Mat &norms)=0 |
Protected Attributes | |
const T & | data_ |
cv::Mat | delta__ |
cv::Mat | norms__ |
cv::Mat | thresholded__ |
typedef Model swri_opencv_util::Fit3d< Model >::M |
typedef cv::Mat swri_opencv_util::Fit3d< Model >::T |
swri_opencv_util::Fit3d< Model >::Fit3d | ( | const T & | data | ) | [inline, explicit] |
virtual void swri_opencv_util::Fit3d< Model >::CalculateNorms | ( | const M & | model, |
cv::Mat & | norms | ||
) | [protected, pure virtual] |
Implemented in swri_opencv_util::CrossFit3d, swri_opencv_util::LineFit3d, and swri_opencv_util::PlaneFit.
static void swri_opencv_util::Fit3d< Model >::CopyTo | ( | const M & | src, |
M & | dst | ||
) | [inline, static] |
int32_t swri_opencv_util::Fit3d< Model >::GetInlierCount | ( | const M & | model, |
double | max_error | ||
) | [inline] |
void swri_opencv_util::Fit3d< Model >::GetInliers | ( | const M & | model, |
double | max_error, | ||
std::vector< uint32_t > & | indices | ||
) | [inline] |
virtual bool swri_opencv_util::Fit3d< Model >::GetModel | ( | const std::vector< int32_t > & | indices, |
M & | model, | ||
double | max_error | ||
) | const [pure virtual] |
virtual std::string swri_opencv_util::Fit3d< Model >::GetModelString | ( | M & | model | ) | const [inline, virtual] |
int32_t swri_opencv_util::Fit3d< Model >::Size | ( | ) | const [inline] |
const T& swri_opencv_util::Fit3d< Model >::data_ [protected] |
cv::Mat swri_opencv_util::Fit3d< Model >::delta__ [protected] |
cv::Mat swri_opencv_util::Fit3d< Model >::norms__ [protected] |
cv::Mat swri_opencv_util::Fit3d< Model >::thresholded__ [protected] |