#include <WriterRetrieval.h>
rdf::WriterImage::WriterImage |
( |
| ) |
|
Initializes a new instance of the WriterIdentification class.
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
-
minSize | The minimum size of the keypoints |
maxSize | The 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
-
polys | Vector 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
-
void rdf::WriterImage::saveFeatures |
( |
QString |
filePath | ) |
|
Saves the SIFT features to the given file path.
- Parameters
-
void rdf::WriterImage::setDescriptors |
( |
cv::Mat |
desc | ) |
|
Sets the descriptors for this Writer Identification task.
- Parameters
-
void rdf::WriterImage::setImage |
( |
cv::Mat |
img | ) |
|
Sets the image.
- Parameters
-
void rdf::WriterImage::setKeyPoints |
( |
QVector< cv::KeyPoint > |
kp | ) |
|
Sets the key points for this Writer Identification task.
- Parameters
-
void rdf::WriterImage::setMask |
( |
cv::Mat |
mask | ) |
|
The documentation for this class was generated from the following files: