1#ifndef DUNE_COPASI_TIFF_FILE_HH
2#define DUNE_COPASI_TIFF_FILE_HH
4#include <dune/common/exceptions.hh>
5#include <dune/common/float_cmp.hh>
32 explicit TIFFFile(
const std::filesystem::path& filename);
50 static void free(
void* ptr);
55 [[nodiscard]]
const Info&
info()
const {
return _info; }
Definition: axis_names.hh:7
Basic information about the tiff file.
Definition: tiff_file.hh:22
uint16_t bits_per_sample
Definition: tiff_file.hh:27
float x_res
Definition: tiff_file.hh:25
uint32_t row_size
Definition: tiff_file.hh:23
float x_off
Definition: tiff_file.hh:25
uint32_t col_size
Definition: tiff_file.hh:24
bool zero
Definition: tiff_file.hh:28
float y_res
Definition: tiff_file.hh:26
float y_off
Definition: tiff_file.hh:26
Simple tiff file interface.
Definition: tiff_file.hh:18
void read_scanline(void *ptr, std::size_t row) const
Reads one line on the buffer for a given row.
TIFFFile & operator=(TIFFFile &&)=delete
TIFFFile(const TIFFFile &)=delete
void * malloc_scanline() const
Allocates buffer to scan lines of the file.
~TIFFFile()
Destructor, closes the file.
const Info & info() const
Definition: tiff_file.hh:55
TIFFFile & operator=(const TIFFFile &)=delete
TIFFFile(TIFFFile &&)=delete
static void free(void *ptr)
Deallocates tiff type pointers.
TIFFFile(const std::filesystem::path &filename)
opens a tiff file from the file system
void close()
Closes the file.