25 #include "libCZI_Metadata.h" 29 class ISubBlockRepository;
30 class IDisplaySettings;
66 static int CalcMd5SumHash(
const void* ptrData,
size_t sizeData, std::uint8_t* ptrHash,
int hashSize);
76 static std::vector<std::uint8_t> Create8BitLookUpTableFromSplines(
int tableElementCnt,
float blackPoint,
float whitePoint,
const std::vector<libCZI::IDisplaySettings::SplineData>& splineData);
87 static std::vector<std::uint8_t> Create8BitLookUpTableFromGamma(
int tableElementCnt,
float blackPoint,
float whitePoint,
float gamma);
93 static std::vector<libCZI::IDisplaySettings::SplineData> CalcSplineDataFromPoints(
int pointCnt, std::function< std::tuple<double, double>(
int idx)> getPoint);
100 static std::shared_ptr<libCZI::IBitmapData > NearestNeighborResize(
libCZI::IBitmapData* bmSrc,
int dstWidth,
int dstHeight);
109 static std::shared_ptr<libCZI::IBitmapData > NearestNeighborResize(
libCZI::IBitmapData* bmSrc,
int dstWidth,
int dstHeight,
const DblRect& roiSrc,
const DblRect& roiDest);
119 if (physicalSize.
w > physicalSize.
h)
121 return float(physicalSize.
w) / logicalRect.
w;
125 return float(physicalSize.
h) / logicalRect.
h;
137 if (physicalSize.
w > physicalSize.
h)
139 return float(physicalSize.
w) / logicalSize.
w;
143 return float(physicalSize.
h) / logicalSize.
h;
184 static std::shared_ptr<libCZI::IIndexSet> IndexSetFromString(
const std::wstring& s);
PixelType
An enum representing a pixel-type.
Definition: libCZI_Pixels.h:127
A rectangle (with double coordinates).
Definition: libCZI_Pixels.h:92
Definition: libCZI_Pixels.h:167
CompressionMode
An enum specifying the compression method.
Definition: libCZI_Pixels.h:144
Interface used to represent an interval (for several dimensions).
Definition: libCZI_DimCoordinate.h:95
Implementation of a class representing a coordinate (and implementing the IDimCoordinate-interface).
Definition: libCZI_DimCoordinate.h:160
int w
The width of the rectangle.
Definition: libCZI_Pixels.h:37
std::uint32_t h
The height.
Definition: libCZI_Pixels.h:107
int h
The height of the rectangle.
Definition: libCZI_Pixels.h:38
A bunch of utility functions.
Definition: libCZI_Utilities.h:33
Interface used to represent a coordinate (in the space of the dimensions identified by DimensionIndex...
Definition: libCZI_DimCoordinate.h:54
Implementation of a class representing an interval (and implementing the libCZI::IDimBounds-interface...
Definition: libCZI_DimCoordinate.h:299
static float CalcZoom(const libCZI::IntRect &logicalRect, const libCZI::IntSize &physicalSize)
Definition: libCZI_Utilities.h:117
A rectangle (with integer coordinates).
Definition: libCZI_Pixels.h:33
A structure representing an R-G-B-color triple (as floats).
Definition: libCZI_Pixels.h:119
External interfaces, classes, functions and structs are found in the namespace "libCZI".
Definition: libCZI.h:45
DimensionIndex
Values that represent dimension indexes.
Definition: libCZI_DimCoordinate.h:34
A structure representing a size (width and height) in integers.
Definition: libCZI_Pixels.h:104
Interface for sub-block repository. This interface is used to access the sub-blocks in a CZI-file...
Definition: libCZI.h:428
static float CalcZoom(const libCZI::IntSize &logicalSize, const libCZI::IntSize &physicalSize)
Definition: libCZI_Utilities.h:135
std::uint32_t w
The width.
Definition: libCZI_Pixels.h:106