![]() |
digiKam
|
Classes | |
struct | RegressionTree |
class | ShapePredictor |
struct | SplitFeature |
Functions | |
void | createShapeRelativeEncoding (const std::vector< float > &shape, const std::vector< std::vector< float > > &pixel_coordinates, std::vector< unsigned long > &anchor_idx, std::vector< std::vector< float > > &deltas) |
void | extractFeaturePixelValues (const cv::Mat &img_, const cv::Rect &rect, const std::vector< float > ¤t_shape, const std::vector< float > &reference_shape, const std::vector< unsigned long > &reference_pixel_anchor_idx, const std::vector< std::vector< float > > &reference_pixel_deltas, std::vector< float > &feature_pixel_values) |
PointTransformAffine | findTformBetweenShapes (const std::vector< float > &from_shape, const std::vector< float > &to_shape) |
unsigned long | left_child (unsigned long idx) |
template<class T > | |
std::vector< T > | location (const std::vector< T > &shape, unsigned long idx) |
unsigned long | nearestShapePoint (const std::vector< float > &shape, const std::vector< float > &pt) |
PointTransformAffine | normalizingTform (const cv::Rect &rect) |
QDataStream & | operator<< (QDataStream &dataStream, const RegressionTree ®tree) |
QDataStream & | operator<< (QDataStream &dataStream, const ShapePredictor &shape) |
QDataStream & | operator<< (QDataStream &dataStream, const SplitFeature &sp) |
QDataStream & | operator>> (QDataStream &dataStream, RegressionTree ®tree) |
QDataStream & | operator>> (QDataStream &dataStream, ShapePredictor &shape) |
QDataStream & | operator>> (QDataStream &dataStream, SplitFeature &sp) |
bool | pointContained (const cv::Rect &rect, const std::vector< float > &point) |
unsigned long | right_child (unsigned long idx) |
PointTransformAffine | unnormalizingTform (const cv::Rect &rect) |
void Digikam::RedEye::createShapeRelativeEncoding | ( | const std::vector< float > & | shape, |
const std::vector< std::vector< float > > & | pixel_coordinates, | ||
std::vector< unsigned long > & | anchor_idx, | ||
std::vector< std::vector< float > > & | deltas | ||
) |
requires
References location(), and nearestShapePoint().
void Digikam::RedEye::extractFeaturePixelValues | ( | const cv::Mat & | img_, |
const cv::Rect & | rect, | ||
const std::vector< float > & | current_shape, | ||
const std::vector< float > & | reference_shape, | ||
const std::vector< unsigned long > & | reference_pixel_anchor_idx, | ||
const std::vector< std::vector< float > > & | reference_pixel_deltas, | ||
std::vector< float > & | feature_pixel_values | ||
) |
requires
References findTformBetweenShapes(), Digikam::PointTransformAffine::get_m(), location(), pointContained(), and unnormalizingTform().
Referenced by Digikam::RedEye::ShapePredictor::operator()().
PointTransformAffine Digikam::RedEye::findTformBetweenShapes | ( | const std::vector< float > & | from_shape, |
const std::vector< float > & | to_shape | ||
) |
References Digikam::findSimilarityTransform(), and location().
Referenced by extractFeaturePixelValues().
unsigned long Digikam::RedEye::left_child | ( | unsigned long | idx | ) |
Returns the index of the left child of the binary tree node idx
Referenced by Digikam::RedEye::RegressionTree::operator()().
|
inline |
requires
Referenced by createShapeRelativeEncoding(), extractFeaturePixelValues(), findTformBetweenShapes(), nearestShapePoint(), and Digikam::RedEye::ShapePredictor::operator()().
unsigned long Digikam::RedEye::nearestShapePoint | ( | const std::vector< float > & | shape, |
const std::vector< float > & | pt | ||
) |
References Digikam::length_squared(), and location().
Referenced by createShapeRelativeEncoding().
PointTransformAffine Digikam::RedEye::normalizingTform | ( | const cv::Rect & | rect | ) |
Returns a transform that maps rect.tl_corner() to (0, 0) and rect.br_corner() to (1,1).
References Digikam::findAffineTransform().
QDataStream & Digikam::RedEye::operator<< | ( | QDataStream & | dataStream, |
const RegressionTree & | regtree | ||
) |
QDataStream & Digikam::RedEye::operator<< | ( | QDataStream & | dataStream, |
const ShapePredictor & | shape | ||
) |
QDataStream & Digikam::RedEye::operator<< | ( | QDataStream & | dataStream, |
const SplitFeature & | sp | ||
) |
QDataStream & Digikam::RedEye::operator>> | ( | QDataStream & | dataStream, |
RegressionTree & | regtree | ||
) |
QDataStream & Digikam::RedEye::operator>> | ( | QDataStream & | dataStream, |
ShapePredictor & | shape | ||
) |
QDataStream & Digikam::RedEye::operator>> | ( | QDataStream & | dataStream, |
SplitFeature & | sp | ||
) |
bool Digikam::RedEye::pointContained | ( | const cv::Rect & | rect, |
const std::vector< float > & | point | ||
) |
Referenced by extractFeaturePixelValues().
unsigned long Digikam::RedEye::right_child | ( | unsigned long | idx | ) |
Returns the index of the left child of the binary tree node idx
Referenced by Digikam::RedEye::RegressionTree::operator()().
PointTransformAffine Digikam::RedEye::unnormalizingTform | ( | const cv::Rect & | rect | ) |
returns a transform that maps (0, 0) to rect.tl_corner() and (1,1) to rect.br_corner().
References Digikam::findAffineTransform().
Referenced by extractFeaturePixelValues(), and Digikam::RedEye::ShapePredictor::operator()().