5#include "slideio/drivers/zvi/pole_lib.hpp"
6#include "slideio/drivers/zvi/zvipixelformat.hpp"
7#include "slideio/core/slideio_enums.hpp"
8#include <opencv2/opencv.hpp>
15 ZVIImageItem() =
default;
16 void setItemIndex(
int itemIndex) { m_ItemIndex = itemIndex; }
17 int getZIndex()
const {
return m_ZIndex; }
18 int getCIndex()
const {
return m_CIndex; }
19 int getTIndex()
const {
return m_TIndex; }
20 int getPositionIndex()
const {
return m_PositionIndex; }
21 int getSceneIndex()
const {
return m_SceneIndex; }
22 int getItemIndex()
const {
return m_ItemIndex; }
23 std::streamoff getDataOffset()
const {
return m_DataPos; }
24 std::string getChannelName()
const {
return m_ChannelName; }
25 ZVIPixelFormat getPixelFormat()
const {
return m_PixelFormat; }
26 int getWidth()
const {
return m_Width; }
27 int getHeight()
const {
return m_Height; }
28 int getZSliceCount()
const {
return m_ZSliceCount; }
29 void setZSliceCount(
int depth) { m_ZSliceCount = depth; }
30 DataType getDataType()
const {
return m_DataType; }
31 int getChannelCount()
const {
return m_ChannelCount; }
32 void readItemInfo(ole::compound_document& doc);
33 int getTileIndexX()
const {
return m_TileIndexX; }
34 int getTileIndexY()
const {
return m_TileIndexY; }
35 void readRaster(ole::compound_document& doc, cv::OutputArray raster)
const;
36 int getValidBits()
const {
return m_ValidBits; }
40 int getAcquisitionBitDepth()
const {
return m_AcquisitionBitDepth; }
44 bool hasAcquisitionTime()
const {
return m_HasAcquisitionTime; }
45 double getAcquisitionTime()
const {
return m_AcquisitionTime; }
49 void setCIndex(
int cIndex) { m_CIndex = cIndex; }
50 void setZIndex(
int zIndex) { m_ZIndex = zIndex; }
51 void setTIndex(
int tIndex) { m_TIndex = tIndex; }
56 void setTileIndexX(
int index) { m_TileIndexX = index; }
57 void setTileIndexY(
int index) { m_TileIndexY = index; }
64 int getMultichannelColour()
const {
return m_MultichannelColour; }
65 double getEmissionWavelength()
const {
return m_EmissionWavelength; }
66 double getExcitationWavelength()
const {
return m_ExcitationWavelength; }
67 std::string getReflector()
const {
return m_Reflector; }
69 void setWidth(
int width) { m_Width = width; }
70 void setHeight(
int height) { m_Height = height; }
71 void setPixelFormat(ZVIPixelFormat pixelFormat);
72 void setPositionIndex(
int positionIndex) { m_PositionIndex = positionIndex; }
73 void setSceneIndex(
int sceneIndex) { m_SceneIndex = sceneIndex; }
74 void setDataOffset(std::streamoff pos) { m_DataPos = pos; }
75 void setChannelName(
const std::string& name) { m_ChannelName = name; }
76 void readContents(ole::compound_document& doc);
77 void readTags(ole::compound_document& doc);
78 void setValidBits(
int bits) { m_ValidBits = bits; }
80 int m_ChannelCount = 0;
87 int m_PositionIndex = -1;
88 int m_SceneIndex = -1;
92 int m_TileIndexX = -1;
93 int m_TileIndexY = -1;
95 int m_AcquisitionBitDepth = 0;
96 bool m_HasAcquisitionTime =
false;
97 double m_AcquisitionTime = 0.;
98 std::streamoff m_DataPos = 0;
99 std::string m_ChannelName;
100 ZVIPixelFormat m_PixelFormat = ZVIPixelFormat::PF_UNKNOWN;
101 int m_ZSliceCount = 1;
102 DataType m_DataType = DataType::DT_Unknown;
103 int m_MultichannelColour = 0;
104 double m_EmissionWavelength = 0.0;
105 double m_ExcitationWavelength = 0.0;
106 std::string m_Reflector;
Definition: converter.hpp:18