![]() |
AliceVision
Photogrammetric Computer Vision Framework
|
Create an ImageDescriber interface for Roma deep dense feature extractor. More...
#include <ImageDescriber_Roma.hpp>
Public Member Functions | |
| bool | useCuda () const override |
| Check if the image describer uses CUDA. More... | |
| bool | useFloatImage () const override |
| Check if the image describer uses a 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 | setConfigurationPreset (ConfigurationPreset preset) override |
| Use a preset to control the number of detected regions. More... | |
| 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. More... | |
| void | allocate (std::unique_ptr< Regions > ®ions) const override |
| Allocate Regions type for Roma. 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 > ®ions, [[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 > ®ions, [[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 |
Create an ImageDescriber interface for Roma deep dense feature extractor.
This is a "virtual" describer: it does not perform extraction itself but provides the AliceVision interface to load/save pre-computed Roma regions. Actual feature extraction is expected to be performed externally (e.g. via a dedicated Python pipeline) and the resulting .feat/.desc files consumed through this describer.
|
overridevirtual |
Allocate Regions type for Roma.
| [in,out] | regions |
Implements aliceVision::feature::ImageDescriber.
|
override |
Detect regions on the 8-bit image and compute their attributes.
For this virtual describer the function is a no-op stub: Roma features are expected to be pre-computed externally. Calling this will throw.
| [in] | image | Input 8-bit grayscale image (unused) |
| [out] | regions | Output regions (unused) |
| [in] | mask | Optional keypoint mask (unused) |
|
inlineoverridevirtual |
Get the corresponding EImageDescriberType.
Implements aliceVision::feature::ImageDescriber.
|
inlineoverridevirtual |
Get the total amount of RAM needed for a feature extraction of an image of the given dimension.
| [in] | width | The image width |
| [in] | height | The image height |
Implements aliceVision::feature::ImageDescriber.
|
overridevirtual |
Use a preset to control the number of detected regions.
| [in] | preset | The preset configuration |
Implements aliceVision::feature::ImageDescriber.
|
inlineoverridevirtual |
Check if the image describer uses CUDA.
Implements aliceVision::feature::ImageDescriber.
|
inlineoverridevirtual |
Check if the image describer uses a float image.
Implements aliceVision::feature::ImageDescriber.
1.8.17