AliceVision
Photogrammetric Computer Vision Framework
Public Member Functions | Protected Attributes | List of all members
aliceVision::feature::Regions Class Referenceabstract

The Regions class describe a set of regions extracted from an image. It contains both a feature (position, scale, orientation) and a descriptor (photometric neighborhood description). More...

#include <Regions.hpp>

Inheritance diagram for aliceVision::feature::Regions:
aliceVision::feature::FeatDescRegions< T, L, regionType >

Public Member Functions

void LoadFeatures (const std::string &sfileNameFeats)
 
PointFeatures GetRegionsPositions () const
 
Vec2 GetRegionPosition (std::size_t i) const
 
std::size_t RegionCount () const
 Return the number of defined regions.
 
std::vector< PointFeature > & Features ()
 Mutable and non-mutable PointFeature getters.
 
const std::vector< PointFeature > & Features () const
 
virtual void Load (const std::string &sfileNameFeats, const std::string &sfileNameDescs)=0
 
virtual void Save (const std::string &sfileNameFeats, const std::string &sfileNameDescs) const =0
 
virtual void SaveDesc (const std::string &sfileNameDescs) const =0
 
virtual bool IsScalar () const =0
 
virtual bool IsBinary () const =0
 
virtual std::string Type_id () const =0
 basis element used for description
 
virtual std::size_t DescriptorLength () const =0
 
virtual const void * blindDescriptors () const =0
 Return a blind pointer to the container of the descriptors array. More...
 
virtual const void * DescriptorRawData () const =0
 Return a pointer to the first value of the descriptor array. More...
 
virtual void clearDescriptors ()=0
 
virtual double SquaredDescriptorDistance (std::size_t i, const Regions *, std::size_t j) const =0
 Return the squared distance between two descriptors.
 
virtual void CopyRegion (std::size_t i, Regions *) const =0
 Add the Inth region to another Region container.
 
virtual RegionsEmptyClone () const =0
 
virtual std::unique_ptr< RegionscreateFilteredRegions (const std::vector< FeatureInImage > &featuresInImage, std::vector< IndexT > &out_associated3dPoint, std::map< IndexT, IndexT > &out_mapFullToLocal) const =0
 

Protected Attributes

std::vector< PointFeature_vec_feats
 

Detailed Description

The Regions class describe a set of regions extracted from an image. It contains both a feature (position, scale, orientation) and a descriptor (photometric neighborhood description).

Describe an image a set of regions (position, ...) + attributes Each region is described by a set of attributes (descriptor)

Member Function Documentation

◆ blindDescriptors()

virtual const void* aliceVision::feature::Regions::blindDescriptors ( ) const
pure virtual

Return a blind pointer to the container of the descriptors array.

Note
: Descriptors are always stored as an std::vector<DescType>.

Implemented in aliceVision::feature::FeatDescRegions< T, L, regionType >.

◆ DescriptorRawData()

virtual const void* aliceVision::feature::Regions::DescriptorRawData ( ) const
pure virtual

Return a pointer to the first value of the descriptor array.

Note
: Descriptors are always stored as a flat array of descriptors.

Implemented in aliceVision::feature::FeatDescRegions< T, L, regionType >.


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