GDCM
2.0.18
|
IconImageGenerator This filter will generate a valid Icon from the Pixel Data element (an instance of gdcm::Pixmap). To generate a valid Icon, one is only allowed the following Photometric Interpretation: More...
#include <gdcmIconImageGenerator.h>
Public Member Functions | |
IconImageGenerator () | |
~IconImageGenerator () | |
bool | Generate () |
Generate Icon. | |
const IconImage & | GetIconImage () const |
Retrieve generated Icon. | |
Pixmap & | GetPixmap () |
const Pixmap & | GetPixmap () const |
void | SetOutputDimensions (const unsigned int dims[2]) |
Set Target dimension of output Icon. | |
void | SetPixelMinMax (double min, double max) |
void | SetPixmap (const Pixmap &p) |
Set/Get File. |
IconImageGenerator This filter will generate a valid Icon from the Pixel Data element (an instance of gdcm::Pixmap). To generate a valid Icon, one is only allowed the following Photometric Interpretation:
The Pixel Bits Allocated is restricted to 8bits, therefore 16 bits image needs to be rescaled. By default the filter will use the full scalar range of 16bits image to rescale to unsigned 8bits. This may not be ideal for some situation, in which case the API SetPixelMinMax can be used to overwrite the default min,max interval used.
gdcm::IconImageGenerator::IconImageGenerator | ( | ) |
gdcm::IconImageGenerator::~IconImageGenerator | ( | ) |
bool gdcm::IconImageGenerator::Generate | ( | ) |
Generate Icon.
const IconImage& gdcm::IconImageGenerator::GetIconImage | ( | ) | const [inline] |
Retrieve generated Icon.
Pixmap& gdcm::IconImageGenerator::GetPixmap | ( | ) | [inline] |
const Pixmap& gdcm::IconImageGenerator::GetPixmap | ( | ) | const [inline] |
void gdcm::IconImageGenerator::SetOutputDimensions | ( | const unsigned int | dims[2] | ) |
Set Target dimension of output Icon.
void gdcm::IconImageGenerator::SetPixelMinMax | ( | double | min, |
double | max | ||
) |
Override default min/max to compute best rescale for 16bits -> 8bits downscale. Typically those value can be read from the SmallestImagePixelValue LargestImagePixelValue DICOM attribute.
void gdcm::IconImageGenerator::SetPixmap | ( | const Pixmap & | p | ) | [inline] |
Set/Get File.