40 auto fv = std::make_shared<Vector>();
41 for (
size_t tmp = 0; tmp <
Size(); tmp++)
42 fv->PushBack(std::static_pointer_cast<FeatureExtractor>(
At(tmp))->
Extract(b));
56 auto fv = std::make_shared<Vector>();
57 for (
size_t tmp = 0; tmp <
Size(); tmp++)
58 fv->PushBack(std::static_pointer_cast<FeatureExtractor>(
At(tmp))->
ExtractWithMask(b, mask));
Abstract class for images.
SVector ExtractWithMask(Block &b, ImageIntGray &mask)
Extracts all the features of the set from a block.
#define CRN_END_CLASS_CONSTRUCTOR(classname)
Defines a class constructor.
#define CRN_DATA_FACTORY_REGISTER(elemname, classname)
Registers a class to the data factory.
SVector Extract(Block &b)
Extracts all the features of the set from a block.
SObject & At(size_t i)
Returns an object from index (unsafe)
size_t Size() const noexcept
Returns the number of data objects in the vector.
#define CRN_BEGIN_CLASS_CONSTRUCTOR(classname)
Defines a class constructor.