 |
AliceVision
Photogrammetric Computer Vision Framework
|
10 #include <aliceVision/feature/Descriptor.hpp>
11 #include <aliceVision/feature/ImageDescriber.hpp>
12 #include <aliceVision/feature/regionsFactory.hpp>
13 #include <aliceVision/feature/sift/SIFT.hpp>
35 bool useCuda()
const override {
return true; }
50 return EImageDescriberType::SIFT_UPRIGHT;
51 return EImageDescriberType::SIFT;
64 return 4 * width * height *
sizeof(float);
71 void setUpRight(
bool upRight)
override { _isOriented = !upRight; }
101 void resetConfiguration();
104 bool _isOriented =
true;
105 static std::unique_ptr<PopSift> _popSift;
106 static std::atomic<int> _instanceCounter;
Create an ImageDescriber interface for PopSIFT SIFT feature extractor.
Definition: ImageDescriber_SIFT_popSIFT.hpp:26
void setUpRight(bool upRight) override
Set image describer always upRight.
Definition: ImageDescriber_SIFT_popSIFT.hpp:71
bool useCuda() const override
Check if the image describer use CUDA.
Definition: ImageDescriber_SIFT_popSIFT.hpp:35
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.
Definition: ImageDescriber_SIFT_popSIFT.hpp:61
~ImageDescriber_SIFT_popSIFT() override
Destructor.
Definition: ImageDescriber_SIFT_popSIFT.cpp:105
Definition: checkerDetector.cpp:32
A pure virtual class for image description computation.
Definition: ImageDescriber.hpp:159
void setConfigurationPreset(ConfigurationPreset preset) override
Use a preset to control the number of detected regions.
Definition: ImageDescriber_SIFT_popSIFT.cpp:25
void allocate(std::unique_ptr< Regions > ®ions) const override
Allocate Regions type depending of the ImageDescriber.
Definition: ImageDescriber_SIFT_popSIFT.hpp:93
bool useFloatImage() const override
Check if the image describer use float image.
Definition: ImageDescriber_SIFT_popSIFT.hpp:41
EImageDescriberType getDescriberType() const override
Get the corresponding EImageDescriberType.
Definition: ImageDescriber_SIFT_popSIFT.hpp:47
Definition: Regions.hpp:144
bool describe(const image::Image< float > &image, std::unique_ptr< Regions > ®ions, const image::Image< unsigned char > *mask=nullptr) override
Detect regions on the 8-bit image and compute their attributes (description)
Definition: ImageDescriber_SIFT_popSIFT.cpp:31
Definition: ImageDescriber.hpp:118