ReadFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rdf::PixelStats Class Reference

This class holds Pixel statistics which are found when computing the local orientation. More...

#include <Pixel.h>

Inheritance diagram for rdf::PixelStats:
Collaboration diagram for rdf::PixelStats:

Public Types

enum  DataIndex {
  all_data = -1, max_val_idx, sparsity_idx, spacing_idx,
  combined_idx, idx_end
}
 

Public Member Functions

 PixelStats (const cv::Mat &orHist=cv::Mat(), const cv::Mat &sparsity=cv::Mat(), double scale=0.0, const QString &id=QString())
 
bool isEmpty () const
 
void setOrientationIndex (int orIdx)
 
int orientationIndex () const
 
int numOrientations () const
 
double orientation () const
 
Vector2D orVec () const
 Returns the orientation vector scaled to unit length. More...
 
double scale () const
 
int lineSpacingIndex () const
 
double lineSpacing () const
 
double minVal () const
 
cv::Mat data (const DataIndex &dIdx=all_data)
 
- Public Member Functions inherited from rdf::BaseElement
 BaseElement (const QString &id=QString())
 This class keeps an ID to keep track of transformed elements during a processing chain. You can e.g. generate Pixel elements from MserBlobs. After filtering, processing etc. you can map back to the (pixel accurate) MserBlob using this ID. More...
 
QString id () const
 Returns the elment's id. More...
 

Protected Member Functions

void convertData (const cv::Mat &orHist, const cv::Mat &sparsity)
 

Protected Attributes

cv::Mat mData
 
double mScale = 0.0
 
double mMinVal = 0.0
 
int mHistSize = 0
 
int mOrIdx = -1
 
- Protected Attributes inherited from rdf::BaseElement
QString mId
 

Detailed Description

This class holds Pixel statistics which are found when computing the local orientation.

See Also
BaseElement

Member Enumeration Documentation

Enumerator
all_data 
max_val_idx 
sparsity_idx 
spacing_idx 
combined_idx 
idx_end 

Constructor & Destructor Documentation

rdf::PixelStats::PixelStats ( const cv::Mat &  orHist = cv::Mat(),
const cv::Mat &  sparsity = cv::Mat(),
double  scale = 0.0,
const QString &  id = QString() 
)

Member Function Documentation

void rdf::PixelStats::convertData ( const cv::Mat &  orHist,
const cv::Mat &  sparsity 
)
protected
cv::Mat rdf::PixelStats::data ( const DataIndex dIdx = all_data)
bool rdf::PixelStats::isEmpty ( ) const
double rdf::PixelStats::lineSpacing ( ) const
int rdf::PixelStats::lineSpacingIndex ( ) const
double rdf::PixelStats::minVal ( ) const
int rdf::PixelStats::numOrientations ( ) const
double rdf::PixelStats::orientation ( ) const
int rdf::PixelStats::orientationIndex ( ) const
Vector2D rdf::PixelStats::orVec ( ) const

Returns the orientation vector scaled to unit length.

Returns
The orientation vector (0° = postive y-axis).
double rdf::PixelStats::scale ( ) const
void rdf::PixelStats::setOrientationIndex ( int  orIdx)

Member Data Documentation

cv::Mat rdf::PixelStats::mData
protected
int rdf::PixelStats::mHistSize = 0
protected
double rdf::PixelStats::mMinVal = 0.0
protected
int rdf::PixelStats::mOrIdx = -1
protected
double rdf::PixelStats::mScale = 0.0
protected

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