Read@CVL
rdf::WriterImage Class Reference

#include <WriterRetrieval.h>

Public Member Functions

 WriterImage ()
 Initializes a new instance of the WriterIdentification class. More...
 
void setImage (cv::Mat img)
 Sets the image. More...
 
void setMask (cv::Mat mask)
 
void calculateFeatures ()
 Calculates the SIFT features of the image. More...
 
void saveFeatures (QString filePath)
 Saves the SIFT features to the given file path. More...
 
void loadFeatures (QString filePath)
 Loads the features from the given file path. More...
 
void setKeyPoints (QVector< cv::KeyPoint > kp)
 Sets the key points for this Writer Identification task. More...
 
QVector< cv::KeyPoint > keyPoints () const
 Returns the keypoints of the SIFT features. More...
 
void setDescriptors (cv::Mat desc)
 Sets the descriptors for this Writer Identification task. More...
 
cv::Mat descriptors () const
 Returns the descriptors of the SIFT features More...
 
void filterKeyPoints (int minSize, int maxSize)
 Filters the key points according to the size of the keypoints More...
 
void filterKeyPointsPoly (QVector< QPolygonF > polys)
 Filters out key points which are not inside one of the polygons in the vector More...
 

Constructor & Destructor Documentation

rdf::WriterImage::WriterImage ( )

Initializes a new instance of the WriterIdentification class.

Member Function Documentation

void rdf::WriterImage::calculateFeatures ( )

Calculates the SIFT features of the image.

cv::Mat rdf::WriterImage::descriptors ( ) const

Returns the descriptors of the SIFT features

Returns
void rdf::WriterImage::filterKeyPoints ( int  minSize,
int  maxSize 
)

Filters the key points according to the size of the keypoints

Parameters
minSizeThe minimum size of the keypoints
maxSizeThe maximum size of the keypoints (-1 to ignore)
void rdf::WriterImage::filterKeyPointsPoly ( QVector< QPolygonF >  polys)

Filters out key points which are not inside one of the polygons in the vector

Parameters
polysVector of polygons (text regions).
QVector< cv::KeyPoint > rdf::WriterImage::keyPoints ( ) const

Returns the keypoints of the SIFT features.

Returns
keypoints
void rdf::WriterImage::loadFeatures ( QString  filePath)

Loads the features from the given file path.

Parameters
filePathThe file path.
void rdf::WriterImage::saveFeatures ( QString  filePath)

Saves the SIFT features to the given file path.

Parameters
filePathThe file path.
void rdf::WriterImage::setDescriptors ( cv::Mat  desc)

Sets the descriptors for this Writer Identification task.

Parameters
descThe descriptors.
void rdf::WriterImage::setImage ( cv::Mat  img)

Sets the image.

Parameters
imgThe img.
void rdf::WriterImage::setKeyPoints ( QVector< cv::KeyPoint >  kp)

Sets the key points for this Writer Identification task.

Parameters
kpThe keypoints.
void rdf::WriterImage::setMask ( cv::Mat  mask)

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