AliceVision
Photogrammetric Computer Vision Framework
Public Member Functions | List of all members
aliceVision::feature::ImageDescriber_SIFT_vlfeat Class Reference

Create an ImageDescriber interface for VLFeat SIFT feature extractor. More...

#include <ImageDescriber_SIFT_vlfeat.hpp>

Inheritance diagram for aliceVision::feature::ImageDescriber_SIFT_vlfeat:
aliceVision::feature::ImageDescriber

Public Member Functions

 ImageDescriber_SIFT_vlfeat (const SiftParams &params=SiftParams(), bool isOriented=true)
 
bool useCuda () const override
 Check if the image describer use CUDA. More...
 
bool useFloatImage () const override
 Check if the image describer use float image. More...
 
EImageDescriberType getDescriberType () const override
 Get the corresponding EImageDescriberType. More...
 
std::size_t getMemoryConsumption (std::size_t width, std::size_t height) const override
 Get the total amount of RAM needed for a feature extraction of an image of the given dimension. More...
 
void setUpRight (bool upRight) override
 Set image describer always upRight. More...
 
void setConfigurationPreset (ConfigurationPreset preset) override
 Use a preset to control the number of detected regions. More...
 
bool describe (const image::Image< float > &image, std::unique_ptr< Regions > &regions, const image::Image< unsigned char > *mask=nullptr) override
 Detect regions on the float image and compute their attributes (description) More...
 
void allocate (std::unique_ptr< Regions > &regions) const override
 Allocate Regions type depending of the ImageDescriber. More...
 
- Public Member Functions inherited from aliceVision::feature::ImageDescriber
virtual void setUpRight ([[maybe_unused]] bool upRight)
 Set whether the image describer is always upright. More...
 
virtual void setUseCuda ([[maybe_unused]] bool useCuda)
 Set whether the image describer needs to use CUDA implementation. More...
 
virtual void setCudaPipe ([[maybe_unused]] int pipe)
 Set the CUDA pipe. More...
 
virtual bool describe ([[maybe_unused]] const image::Image< unsigned char > &image, [[maybe_unused]] std::unique_ptr< Regions > &regions, [[maybe_unused]] const image::Image< unsigned char > *mask=nullptr)
 Detect regions on the 8-bit image and compute their attributes (description) More...
 
virtual bool describe ([[maybe_unused]] const image::Image< float > &image, [[maybe_unused]] std::unique_ptr< Regions > &regions, [[maybe_unused]] const image::Image< unsigned char > *mask=nullptr)
 Detect regions on the float image and compute their attributes (description) More...
 
void Load (Regions *regions, const std::string &sfileNameFeats, const std::string &sfileNameDescs) const
 
void Save (const Regions *regions, const std::string &sfileNameFeats, const std::string &sfileNameDescs) const
 
void LoadFeatures (Regions *regions, const std::string &sfileNameFeats) const
 

Detailed Description

Create an ImageDescriber interface for VLFeat SIFT feature extractor.

Member Function Documentation

◆ allocate()

void aliceVision::feature::ImageDescriber_SIFT_vlfeat::allocate ( std::unique_ptr< Regions > &  regions) const
inlineoverridevirtual

Allocate Regions type depending of the ImageDescriber.

Parameters
[in,out]regions

Implements aliceVision::feature::ImageDescriber.

◆ describe()

bool aliceVision::feature::ImageDescriber_SIFT_vlfeat::describe ( const image::Image< float > &  image,
std::unique_ptr< Regions > &  regions,
const image::Image< unsigned char > *  mask = nullptr 
)
inlineoverride

Detect regions on the float image and compute their attributes (description)

Parameters
[in]imageImage.
[out]regionsThe detected regions and attributes (the caller must delete the allocated data)
[in]mask8-bit grayscale image for keypoint filtering (optional) Non-zero values depict the region of interest.
Returns
True if detection succeeded.

◆ getDescriberType()

EImageDescriberType aliceVision::feature::ImageDescriber_SIFT_vlfeat::getDescriberType ( ) const
inlineoverridevirtual

Get the corresponding EImageDescriberType.

Returns
EImageDescriberType

Implements aliceVision::feature::ImageDescriber.

◆ getMemoryConsumption()

std::size_t aliceVision::feature::ImageDescriber_SIFT_vlfeat::getMemoryConsumption ( std::size_t  width,
std::size_t  height 
) const
inlineoverridevirtual

Get the total amount of RAM needed for a feature extraction of an image of the given dimension.

Parameters
[in]widthThe image width
[in]heightThe image height
Returns
total amount of memory needed

Implements aliceVision::feature::ImageDescriber.

◆ setConfigurationPreset()

void aliceVision::feature::ImageDescriber_SIFT_vlfeat::setConfigurationPreset ( ConfigurationPreset  preset)
inlineoverridevirtual

Use a preset to control the number of detected regions.

Parameters
[in]presetThe preset configuration

Implements aliceVision::feature::ImageDescriber.

◆ setUpRight()

void aliceVision::feature::ImageDescriber_SIFT_vlfeat::setUpRight ( bool  upRight)
inlineoverride

Set image describer always upRight.

Parameters
[in]upRight

◆ useCuda()

bool aliceVision::feature::ImageDescriber_SIFT_vlfeat::useCuda ( ) const
inlineoverridevirtual

Check if the image describer use CUDA.

Returns
True if the image describer use CUDA

Implements aliceVision::feature::ImageDescriber.

◆ useFloatImage()

bool aliceVision::feature::ImageDescriber_SIFT_vlfeat::useFloatImage ( ) const
inlineoverridevirtual

Check if the image describer use float image.

Returns
True if the image describer use float image

Implements aliceVision::feature::ImageDescriber.


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