Dune::Copasi
|
This class describes a tiff grayscale. More...
#include <tiff_grayscale.hh>
Public Member Functions | |
TIFFGrayscale (const std::filesystem::path &filename, std::size_t max_cache=8) | |
Constructs a new instance. | |
const TIFFGrayscaleRow & | operator[] (std::size_t row) const |
Array indexer row operator. | |
double | operator() (double pos_x, double pos_y) noexcept |
TIFF value by position call operator. | |
std::size_t | size () const |
The size of rows for this file. | |
std::size_t | rows () const |
The size of rows for this file. | |
std::size_t | cols () const |
The size of cols for this file. | |
This class describes a tiff grayscale.
This class opens, closes, and query information from a single tiff image. Data can be queried using matrix like indices with the bracket operator or using space coordinates using the parenthesis operator.
|
explicit |
Constructs a new instance.
[in] | filename | The filename |
[in] | max_cache | The maximum row cache. |
std::size_t Dune::Copasi::TIFFGrayscale::cols | ( | ) | const |
The size of cols for this file.
TIFF value by position call operator.
Here we assume that TIFFTAG_RESOLUTIONUNIT has same units as the grid. Since we never check grid units, we also do not check tiff units
[in] | pos_x | The x position in same units as the tiff file |
[in] | pos_y | The y position in same units as the tiff file |
const TIFFGrayscaleRow & Dune::Copasi::TIFFGrayscale::operator[] | ( | std::size_t | row | ) | const |
Array indexer row operator.
[in] | row | The row index |
std::size_t Dune::Copasi::TIFFGrayscale::rows | ( | ) | const |
The size of rows for this file.
std::size_t Dune::Copasi::TIFFGrayscale::size | ( | ) | const |
The size of rows for this file.