22 #ifndef SIRIUS_IMAGE_H_ 23 #define SIRIUS_IMAGE_H_ 101 Buffer::value_type
Get(
int row,
int col)
const {
111 void Set(
int row,
int col, Buffer::value_type val) {
163 #endif // SIRIUS_IMAGE_H_
int left
Definition: image.h:52
PaddingType
Definition: image.h:31
Definition: exception.h:27
Buffer data
Definition: image.h:158
void Set(int row, int col, Buffer::value_type val)
Set the value at cell (row, col) Row and col starts at 0.
Definition: image.h:111
void CreateEvenImage()
add row and col according to odd dim of calling image
Image CreateZeroPaddedImage(const Padding &zero_padding) const
Create a zero padded image from the current image.
Image & operator=(const Image &)=default
std::vector< double > Buffer
Definition: types.h:33
int top
Definition: image.h:50
int bottom
Definition: image.h:51
Image CreateMirrorPaddedImage(const Padding &mirror_padding) const
Create a padded image using mirroring on borders.
int CellCount() const
Definition: types.h:77
int CellCount() const
Get the cell count of the image (row x col)
Definition: image.h:94
Data class that represents the padding of an image.
Definition: image.h:39
Data class that represents the size of an image.
Definition: types.h:38
Image CreatePaddedImage(const Padding &padding) const
Create padded image from the current image.
int row
Definition: types.h:79
bool IsEmpty() const
Definition: image.h:55
int right
Definition: image.h:53
int col
Definition: types.h:80
Buffer::value_type Get(int row, int col) const
Get the value at cell (row, col) Row and col starts at 0.
Definition: image.h:101
Data class that represents an image (Size + Buffer)
Definition: image.h:65
PaddingType type
Definition: image.h:59
Padding & operator=(const Padding &)=default
bool IsLoaded() const
Check that the image is loaded Row, col and data are set.
Definition: image.h:122
Size size
Definition: image.h:157