libCZI
Reading and Writing CZI documents made easy
libCZI::Compositors::ChannelInfo Struct Reference

#include <libCZI_Compositor.h>

Public Member Functions

void Clear ()
 All members are set to zero.
 

Public Attributes

float weight
 The weight of the channel.
 
bool enableTinting
 
TintingColor tinting
 The tinting color (only examined if enableTinting is true).
 
float blackPoint
 
float whitePoint
 
int lookUpTableElementCount
 
const std::uint8_t * ptrLookUpTable
 

Detailed Description

Information about a channel for use in the multi-channel-composition operation. The gradation to be applied can be specified in two ways: either the black-point and white-point is provided, and the gradation curve is a straight line (between black-point and white-point) or a look-up table is used. In case of a look-up table being specified, black-point/white-point is not used. The size of the look-up table must match exactly the bits in this channels, so far a Gray8/Bgr24 it must be of size 256 and for Gray16/Bgr48 is must be of size 65536.

Member Data Documentation

◆ blackPoint

float libCZI::Compositors::ChannelInfo::blackPoint

The black point - it is a float between 0 and 1, where 0 corresponds to the lowest pixel value (of the pixeltype for the channel) and 1 to the highest pixel value (of the pixeltype of this channel). All pixel values below the black point are mapped to 0.

◆ enableTinting

bool libCZI::Compositors::ChannelInfo::enableTinting

True if tinting is enabled for this channel (in which case the tinting member is to be examined), false if no tinting is to be applied (the tinting member is then not used).

◆ lookUpTableElementCount

int libCZI::Compositors::ChannelInfo::lookUpTableElementCount

Number of elements in the look-up table. If 0, then the look-up table is not used. If this channelInfo applies to a Gray8/Bgr24-channel, then the size of the look-up table must be 256. In case of a Gray16/Bgr48-channel, the size must be 65536.

Remarks
If a look-up table is provided, then blackPoint and whitePoint are not used any more.

◆ ptrLookUpTable

const std::uint8_t* libCZI::Compositors::ChannelInfo::ptrLookUpTable

The pointer to the look-up table. If lookUpTableElementCount is <> 0, then this pointer must be valid.

◆ whitePoint

float libCZI::Compositors::ChannelInfo::whitePoint

The white point - it is a float between 0 and 1, where 0 corresponds to the lowest pixel value (of the pixeltype for the channel) and 1 to the highest pixel value (of the pixeltype of this channel). All pixel value above the white pointer are mapped to the highest pixel value.


The documentation for this struct was generated from the following file: