|
waLBerla 7.2
|
A gray scale image.
Can be loaded from png files
#include <GrayScaleImage.h>
Public Types | |
| using | pixel_t = unsigned char |
Public Member Functions | |
| GrayScaleImage (uint_t _width, uint_t _height) | |
| GrayScaleImage (const std::string &pngFilename) | |
| void | save (const std::string &pngFilename) |
| GrayScaleImage | getResizedImage (uint_t newWidth, uint_t newHeight, bool bilinear=true) const |
| uint_t | width () const |
| uint_t | height () const |
| uint_t | size (uint_t coord) const |
| real_t | operator() (cell_idx_t x, cell_idx_t y) const |
| void | setElement (cell_idx_t x, cell_idx_t y, real_t val) |
| unsigned char & | getElement (cell_idx_t x, cell_idx_t y) |
| unsigned char | getElement (cell_idx_t x, cell_idx_t y) const |
Static Public Member Functions | |
| static pixel_t | pixelValueFromString (const std::string &str) |
Protected Member Functions | |
| GrayScaleImage ()=default | |
Protected Attributes | |
| std::array< uint_t, 2 > | size_ |
| std::vector< unsigned char > | image_ |
| using walberla::geometry::GrayScaleImage::pixel_t = unsigned char |
| walberla::geometry::GrayScaleImage::GrayScaleImage | ( | const std::string & | pngFilename | ) |
|
protecteddefault |
|
inline |
|
inline |
| GrayScaleImage walberla::geometry::GrayScaleImage::getResizedImage | ( | uint_t | newWidth, |
| uint_t | newHeight, | ||
| bool | bilinear = true ) const |
|
inline |
| real_t walberla::geometry::GrayScaleImage::operator() | ( | cell_idx_t | x, |
| cell_idx_t | y ) const |
|
static |
| void walberla::geometry::GrayScaleImage::save | ( | const std::string & | pngFilename | ) |
| void walberla::geometry::GrayScaleImage::setElement | ( | cell_idx_t | x, |
| cell_idx_t | y, | ||
| real_t | val ) |
|
inline |
|
protected |
|
protected |