 |
AliceVision
Photogrammetric Computer Vision Framework
|
10 #include <aliceVision/feature/imageDescriberCommon.hpp>
11 #include <aliceVision/feature/ImageDescriber.hpp>
12 #include <aliceVision/feature/regionsFactory.hpp>
37 std::size_t maxTotalKeypoints = 1000;
38 int nOctaveLayers = 6;
39 double contrastThreshold = 0.04;
40 double edgeThreshold = 10;
56 bool useCuda()
const override {
return false; }
68 EImageDescriberType
getDescriberType()
const override {
return EImageDescriberType::SIFT_OCV; }
79 return 3 * width * height *
sizeof(
unsigned char) + (_params.maxTotalKeypoints * 128 *
sizeof(
unsigned char));
98 std::unique_ptr<Regions>& regions,
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_OCV.hpp:77
Create an ImageDescriber interface for OpenCV SIFT feature extractor Regions is the same as classic S...
Definition: ImageDescriber_SIFT_OCV.hpp:49
bool useCuda() const override
Check if the image describer use CUDA.
Definition: ImageDescriber_SIFT_OCV.hpp:56
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_OCV.hpp:87
void setConfigurationPreset(ConfigurationPreset preset)
Use a preset to control the number of detected regions.
Definition: ImageDescriber_SIFT_OCV.cpp:21
std::size_t gridSize
Parameters.
Definition: ImageDescriber_SIFT_OCV.hpp:36
Definition: Regions.hpp:144
EImageDescriberType getDescriberType() const override
Get the corresponding EImageDescriberType.
Definition: ImageDescriber_SIFT_OCV.hpp:68
bool useFloatImage() const override
Check if the image describer use float image.
Definition: ImageDescriber_SIFT_OCV.hpp:62
bool describe(const image::Image< unsigned char > &image, std::unique_ptr< Regions > ®ions, const image::Image< unsigned char > *mask=NULL) override
Detect regions on the 8-bit image and compute their attributes (description)
Definition: ImageDescriber_SIFT_OCV.cpp:53
Definition: ImageDescriber.hpp:118
Definition: ImageDescriber_SIFT_OCV.hpp:25
void allocate(std::unique_ptr< Regions > ®ions) const override
Allocate Regions type depending of the ImageDescriber.
Definition: ImageDescriber_SIFT_OCV.hpp:105