 |
AliceVision
Photogrammetric Computer Vision Framework
|
9 #include <aliceVision/feature/imageDescriberCommon.hpp>
10 #include <aliceVision/feature/ImageDescriber.hpp>
11 #include <aliceVision/feature/regionsFactory.hpp>
12 #include <aliceVision/types.hpp>
39 bool useCuda()
const override {
return false; }
51 EImageDescriberType
getDescriberType()
const override {
return EImageDescriberType::ROMA; }
62 return 3 * width * height *
sizeof(
unsigned char);
83 std::unique_ptr<Regions>& regions,
90 void allocate(std::unique_ptr<Regions>& regions)
const override;
EImageDescriberType getDescriberType() const override
Get the corresponding EImageDescriberType.
Definition: ImageDescriber_Roma.hpp:51
bool useFloatImage() const override
Check if the image describer uses a float image.
Definition: ImageDescriber_Roma.hpp:45
Definition: checkerDetector.cpp:32
A pure virtual class for image description computation.
Definition: ImageDescriber.hpp:159
void allocate(std::unique_ptr< Regions > ®ions) const override
Allocate Regions type for Roma.
Definition: ImageDescriber_Roma.cpp:16
bool describe(const image::Image< unsigned char > &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.
Definition: ImageDescriber_Roma.cpp:18
bool useCuda() const override
Check if the image describer uses CUDA.
Definition: ImageDescriber_Roma.hpp:39
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_Roma.hpp:60
void setConfigurationPreset(ConfigurationPreset preset) override
Use a preset to control the number of detected regions.
Definition: ImageDescriber_Roma.cpp:14
Create an ImageDescriber interface for Roma deep dense feature extractor.
Definition: ImageDescriber_Roma.hpp:28
Definition: ImageDescriber.hpp:118