|
|
typedef T | Tpixel |
| |
|
typedef Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > | Base |
| |
|
| | Image () |
| | Default constructor. More...
|
| |
| | Image (int width, int height, bool fInit=false, const T val=T()) |
| | Full constructor. More...
|
| |
| | Image (const Base &I) |
| | Copy constructor. More...
|
| |
| | Image (Base &&src) |
| | Move constructor. More...
|
| |
| Image & | operator= (const Base &I) |
| | Assignment operator. More...
|
| |
|
virtual | ~Image ()=default |
| | destructor
|
| |
| void | resize (int width, int height, bool fInit=true, const T val=T()) |
| | Change geometry of image. More...
|
| |
| int | width () const |
| | Retrieve the width of the image. More...
|
| |
| int | height () const |
| | Retrieve the height of the image. More...
|
| |
| int | depth () const |
| | Return the depth in byte of the pixel. More...
|
| |
| unsigned long long int | memorySize () const |
| | Retrieve the size in byte of the image. More...
|
| |
| int | channels () const |
| | Return the number of channels. More...
|
| |
| const T & | operator() (int y, int x) const |
| | constant random pixel access More...
|
| |
| T & | operator() (int y, int x) |
| | random pixel access More...
|
| |
|
const T & | operator() (int i) const |
| |
|
T & | operator() (int i) |
| |
| const Base & | getMat () const |
| | Get low level access to the internal pixel data. More...
|
| |
|
Base & | getMat () |
| |
| bool | contains (int y, int x) const |
| | Tell if a point is inside the image. More...
|
| |
|
template<class UnaryFunction > |
| bool | perPixelOperation (UnaryFunction f) |
| |
◆ Image() [1/4]
Default constructor.
- Note
- This create an empty image
◆ Image() [2/4]
Full constructor.
- Parameters
-
| width | Width of the image (ie number of column) |
| height | Height of the image (ie number of row) |
| fInit | Tell if the image should be initialized |
| val | If fInit is true, set all pixel to the specified value |
◆ Image() [3/4]
Copy constructor.
- Parameters
-
◆ Image() [4/4]
Move constructor.
- Parameters
-
◆ channels()
Return the number of channels.
- Returns
- number of channels
◆ contains()
Tell if a point is inside the image.
- Parameters
-
| y | Index of the row |
| x | Index of the column |
- Return values
-
| true | If pixel (y,x) is inside the image |
| false | If pixel (y,x) is outside the image |
◆ depth()
Return the depth in byte of the pixel.
- Returns
- depth of the pixel (in byte)
- Note
- (T=unsigned char will return 1)
◆ getMat()
Get low level access to the internal pixel data.
- Returns
- const reference to internal matrix data
◆ height()
Retrieve the height of the image.
- Returns
- Height of the image
◆ memorySize()
Retrieve the size in byte of the image.
- Returns
- size of the image (in byte)
- Note
- We use unsigned long long integers to avoid issues with large images, which can exceed several GB.
◆ operator()() [1/2]
random pixel access
- Parameters
-
| y | Index of the row |
| x | Index of the column |
- Returns
- Pixel reference at position (y,x)
◆ operator()() [2/2]
constant random pixel access
- Parameters
-
| y | Index of the row |
| x | Index of the column |
- Returns
- Constant pixel reference at position (y,x)
◆ operator=()
Assignment operator.
- Parameters
-
- Returns
- Image after assignment
◆ resize()
Change geometry of image.
- Parameters
-
| width | New width of image |
| height | New height of image |
| fInit | Indicate if new image should be initialized |
| val | if fInit is true all pixel in the new image are set to this value |
◆ width()
Retrieve the width of the image.
- Returns
- Width of image
◆ operator+
template<typename T >
template<typename T1 >
Pixelwise addition of two images.
- Parameters
-
| imgA | First image |
| imgB | Second image |
- Returns
- pixelwise imgA + imgB
- Note
- Images must have the same size
◆ operator-
template<typename T >
template<typename T1 >
Pixelwise subtraction of two images.
- Parameters
-
| imgA | First image |
| imgB | Second image |
- Returns
- pixelwise imgA - imgB
- Note
- Images must have the same size
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/alicevision/checkouts/stable/src/aliceVision/feature/openCV/ImageDescriber_AKAZE_OCV.hpp
- /home/docs/checkouts/readthedocs.org/user_builds/alicevision/checkouts/stable/src/aliceVision/image/Image.hpp