ome-files
0.1.1
|
Tile information for an IFD. More...
#include <ome/files/tiff/TileInfo.h>
Classes | |
class | Impl |
Internal implementation details of TileInfo. More... | |
Public Member Functions | |
virtual | ~TileInfo () |
Destructor. | |
TileType | tileType () const |
Get the type of a tile. More... | |
dimension_size_type | tileWidth () const |
Get the width of a tile. More... | |
dimension_size_type | tileHeight () const |
Get the height of a tile. More... | |
dimension_size_type | tileCount () const |
Get the total number of tiles. More... | |
dimension_size_type | tileRowCount () const |
Get the total number of rows. More... | |
dimension_size_type | tileColumnCount () const |
Get the total number of columns. More... | |
dimension_size_type | bufferSize () const |
Get the buffer size needed to contain a single tile. More... | |
dimension_size_type | tileIndex (dimension_size_type x, dimension_size_type y, dimension_size_type s=0) const |
Get the tile index covering the given coordinates. More... | |
dimension_size_type | tileColumn (dimension_size_type index) const |
Get the column index for the given tile index. More... | |
dimension_size_type | tileRow (dimension_size_type index) const |
Get the row index for the given tile index. More... | |
dimension_size_type | tileSample (dimension_size_type index) const |
Get the sample index for the given tile index. More... | |
PlaneRegion | tileRegion (dimension_size_type index, const PlaneRegion &clip) const |
Get the region covered by the given tile index. More... | |
PlaneRegion | tileRegion (dimension_size_type index) const |
Get the region covered by the given tile index. More... | |
std::vector< dimension_size_type > | tileCoverage (PlaneRegion region) const |
Get a list of the tiles covering an image region. More... | |
Protected Member Functions | |
TileInfo (ome::compat::shared_ptr< IFD > ifd) | |
Constructor. More... | |
Protected Attributes | |
ome::compat::shared_ptr< Impl > | impl |
Private implementation details. | |
Friends | |
class | IFD |
Tile information for an IFD.
|
protected |
Constructor.
ifd | the directory the tile belongs to. |
dimension_size_type ome::files::tiff::TileInfo::bufferSize | ( | ) | const |
dimension_size_type ome::files::tiff::TileInfo::tileColumn | ( | dimension_size_type | index | ) | const |
Get the column index for the given tile index.
index | the tile index. |
References impl.
Referenced by tileCoverage(), and tileRegion().
dimension_size_type ome::files::tiff::TileInfo::tileColumnCount | ( | ) | const |
dimension_size_type ome::files::tiff::TileInfo::tileCount | ( | ) | const |
std::vector< dimension_size_type > ome::files::tiff::TileInfo::tileCoverage | ( | PlaneRegion | region | ) | const |
Get a list of the tiles covering an image region.
region | the image region to cover. |
References ome::files::PlaneRegion::h, impl, ome::files::tiff::SEPARATE, tileColumn(), tileIndex(), tileRow(), ome::files::PlaneRegion::w, ome::files::PlaneRegion::x, and ome::files::PlaneRegion::y.
Referenced by ome::files::tiff::IFD::readImage().
dimension_size_type ome::files::tiff::TileInfo::tileHeight | ( | ) | const |
dimension_size_type ome::files::tiff::TileInfo::tileIndex | ( | dimension_size_type | x, |
dimension_size_type | y, | ||
dimension_size_type | s = 0 |
||
) | const |
Get the tile index covering the given coordinates.
x | the image column. |
y | the image row. |
s | the image subchannel. |
References impl.
Referenced by tileCoverage().
PlaneRegion ome::files::tiff::TileInfo::tileRegion | ( | dimension_size_type | index, |
const PlaneRegion & | clip | ||
) | const |
Get the region covered by the given tile index.
If the tile index is invalid, the region will be of zero size. The clip region is a bounding box which will be intersected with the tile index to compute the returned region.
index | the tile index. |
clip | the clip region. |
PlaneRegion ome::files::tiff::TileInfo::tileRegion | ( | dimension_size_type | index | ) | const |
Get the region covered by the given tile index.
If the tile index is invalid, the region will be of zero size.
index | the tile index. |
References impl, tileColumn(), and tileRow().
dimension_size_type ome::files::tiff::TileInfo::tileRow | ( | dimension_size_type | index | ) | const |
Get the row index for the given tile index.
index | the tile index. |
References impl.
Referenced by tileCoverage(), and tileRegion().
dimension_size_type ome::files::tiff::TileInfo::tileRowCount | ( | ) | const |
dimension_size_type ome::files::tiff::TileInfo::tileSample | ( | dimension_size_type | index | ) | const |
Get the sample index for the given tile index.
index | the tile index. |
References impl.
TileType ome::files::tiff::TileInfo::tileType | ( | ) | const |
dimension_size_type ome::files::tiff::TileInfo::tileWidth | ( | ) | const |