FeatureCollection maps one LabelInfo to its features. In addition it handles the I/O using Json.
More...
#include <SuperPixelTrainer.h>
FeatureCollection maps one LabelInfo to its features. In addition it handles the I/O using Json.
rdf::FeatureCollection::FeatureCollection |
( |
const cv::Mat & |
descriptors = cv::Mat() , |
|
|
const LabelInfo & |
label = LabelInfo() |
|
) |
| |
void rdf::FeatureCollection::append |
( |
const cv::Mat & |
descriptor | ) |
|
cv::Mat rdf::FeatureCollection::descriptors |
( |
| ) |
const |
QString rdf::FeatureCollection::jsonKey |
( |
| ) |
|
|
static |
LabelInfo rdf::FeatureCollection::label |
( |
| ) |
const |
int rdf::FeatureCollection::numDescriptors |
( |
| ) |
const |
FeatureCollection rdf::FeatureCollection::read |
( |
QJsonObject & |
jo, |
|
|
const QString & |
filePath = "" |
|
) |
| |
|
static |
void rdf::FeatureCollection::setDescriptors |
( |
const cv::Mat & |
desc | ) |
|
Splits the descriptors according to their trueLabels.
- Parameters
-
descriptors | The descriptors. |
set | The pixel set. NOTE: set & descriptors must be synced descriptors.rows == set.size() |
- Returns
QJsonObject rdf::FeatureCollection::toJson |
( |
const QString & |
filePath = "" | ) |
const |
cv::Mat rdf::FeatureCollection::mDesc |
|
protected |
The documentation for this class was generated from the following files: