![]() |
EduArt Sensor Ring Library 3.0.1
|
Template for images with one channel and variable type. More...
#include <Image.hpp>
Public Member Functions | |
| double | avg () |
| Calculate the average over all pixels. | |
| GenericGrayscaleImage & | round () |
| Round each pixel value when a floating point type is used. | |
| GenericGrayscaleImage & | operator/= (const T other) |
| Divide each pixel by the same value. | |
| GenericGrayscaleImage & | operator+= (const T other) |
| Add the same value to each pixel. | |
| GenericGrayscaleImage & | operator-= (const T other) |
| Subtract the same value from each pixel. | |
| GenericGrayscaleImage & | operator+= (const GenericGrayscaleImage &other) |
| Add two GrayScaleImage images pixel wise. | |
| GenericGrayscaleImage & | operator-= (const GenericGrayscaleImage &other) |
| Subtract two GrayScaleImage images pixel wise. | |
| template<typename U> | |
| GenericGrayscaleImage & | operator+= (const GenericGrayscaleImage< U, RESOLUTION > &other) |
| Add two GrayScaleImage images of different data types pixel wise. | |
| template<typename U> | |
| GenericGrayscaleImage & | operator-= (const GenericGrayscaleImage< U, RESOLUTION > &other) |
| Subtract two GrayScaleImage images of different data types pixel wise. | |
Public Attributes | |
| std::array< T, RESOLUTION > | data = {} |
| Internal data structure for the image. | |
Template for images with one channel and variable type.
| double eduart::measurement::GenericGrayscaleImage< T, RESOLUTION >::avg | ( | ) |
Calculate the average over all pixels.
| GenericGrayscaleImage & eduart::measurement::GenericGrayscaleImage< T, RESOLUTION >::operator+= | ( | const GenericGrayscaleImage< T, RESOLUTION > & | other | ) |
Add two GrayScaleImage images pixel wise.
| GenericGrayscaleImage & eduart::measurement::GenericGrayscaleImage< T, RESOLUTION >::operator+= | ( | const GenericGrayscaleImage< U, RESOLUTION > & | other | ) |
Add two GrayScaleImage images of different data types pixel wise.
| GenericGrayscaleImage & eduart::measurement::GenericGrayscaleImage< T, RESOLUTION >::operator+= | ( | const T | other | ) |
Add the same value to each pixel.
| GenericGrayscaleImage & eduart::measurement::GenericGrayscaleImage< T, RESOLUTION >::operator-= | ( | const GenericGrayscaleImage< T, RESOLUTION > & | other | ) |
Subtract two GrayScaleImage images pixel wise.
| GenericGrayscaleImage & eduart::measurement::GenericGrayscaleImage< T, RESOLUTION >::operator-= | ( | const GenericGrayscaleImage< U, RESOLUTION > & | other | ) |
Subtract two GrayScaleImage images of different data types pixel wise.
| GenericGrayscaleImage & eduart::measurement::GenericGrayscaleImage< T, RESOLUTION >::operator-= | ( | const T | other | ) |
Subtract the same value from each pixel.
| GenericGrayscaleImage & eduart::measurement::GenericGrayscaleImage< T, RESOLUTION >::operator/= | ( | const T | other | ) |
Divide each pixel by the same value.
| GenericGrayscaleImage & eduart::measurement::GenericGrayscaleImage< T, RESOLUTION >::round | ( | ) |
Round each pixel value when a floating point type is used.