AliceVision
Photogrammetric Computer Vision Framework
Public Types | Public Member Functions | Protected Attributes | List of all members
aliceVision::feature::FeatDescRegions< T, L, regionType > Class Template Reference
Inheritance diagram for aliceVision::feature::FeatDescRegions< T, L, regionType >:
aliceVision::feature::Regions

Public Types

typedef FeatDescRegions< T, L, regionType > This
 
typedef Descriptor< T, L > DescriptorT
 Region descriptor.
 
typedef std::vector< DescriptorTDescsT
 Container for multiple regions description.
 

Public Member Functions

std::string Type_id () const override
 basis element used for description
 
std::size_t DescriptorLength () const override
 
bool IsScalar () const override
 
bool IsBinary () const override
 
RegionsEmptyClone () const override
 
void Load (const std::string &sfileNameFeats, const std::string &sfileNameDescs) override
 Read from files the regions and their corresponding descriptors.
 
void Save (const std::string &sfileNameFeats, const std::string &sfileNameDescs) const override
 Export in two separate files the regions and their corresponding descriptors.
 
void SaveDesc (const std::string &sfileNameDescs) const override
 
std::vector< DescriptorT > & Descriptors ()
 Mutable and non-mutable DescriptorT getters.
 
const std::vector< DescriptorT > & Descriptors () const
 
const void * blindDescriptors () const override
 Return a blind pointer to the container of the descriptors array. More...
 
const void * DescriptorRawData () const override
 Return a pointer to the first value of the descriptor array. More...
 
void clearDescriptors () override
 
void swap (This &other)
 
double SquaredDescriptorDistance (std::size_t i, const Regions *genericRegions, std::size_t j) const override
 Return the squared distance between two descriptors.
 
void CopyRegion (std::size_t i, Regions *outRegionContainer) const override
 Add the Inth region to another Region container. More...
 
std::unique_ptr< RegionscreateFilteredRegions (const std::vector< FeatureInImage > &featuresInImage, std::vector< IndexT > &out_associated3dPoint, std::map< IndexT, IndexT > &out_mapFullToLocal) const override
 Duplicate only reconstructed regions. More...
 
- Public Member Functions inherited from aliceVision::feature::Regions
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
 

Protected Attributes

std::vector< DescriptorT_vec_descs
 
- Protected Attributes inherited from aliceVision::feature::Regions
std::vector< PointFeature_vec_feats
 

Member Function Documentation

◆ blindDescriptors()

template<typename T , std::size_t L, ERegionType regionType>
const void* aliceVision::feature::FeatDescRegions< T, L, regionType >::blindDescriptors ( ) const
inlineoverridevirtual

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

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

Implements aliceVision::feature::Regions.

◆ CopyRegion()

template<typename T , std::size_t L, ERegionType regionType>
void aliceVision::feature::FeatDescRegions< T, L, regionType >::CopyRegion ( std::size_t  i,
Regions outRegionContainer 
) const
inlineoverridevirtual

Add the Inth region to another Region container.

Parameters
[in]iindex of the region to copy
[out]outRegionContainerthe output region group to add the region

Implements aliceVision::feature::Regions.

◆ createFilteredRegions()

template<typename T , std::size_t L, ERegionType regionType>
std::unique_ptr<Regions> aliceVision::feature::FeatDescRegions< T, L, regionType >::createFilteredRegions ( const std::vector< FeatureInImage > &  featuresInImage,
std::vector< IndexT > &  out_associated3dPoint,
std::map< IndexT, IndexT > &  out_mapFullToLocal 
) const
inlineoverridevirtual

Duplicate only reconstructed regions.

Parameters
[in]featuresInImagelist of features with an associated 3D point Id
[out]out_associated3dPoint
[out]out_mapFullToLocal

Implements aliceVision::feature::Regions.

◆ DescriptorRawData()

template<typename T , std::size_t L, ERegionType regionType>
const void* aliceVision::feature::FeatDescRegions< T, L, regionType >::DescriptorRawData ( ) const
inlineoverridevirtual

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

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

Implements aliceVision::feature::Regions.


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