Orthanc Client
Documentation of the client library of Orthanc
Enumerations
Global definitions.

Enumerations

enum  Orthanc::PixelFormat {
  Orthanc::PixelFormat_SignedGrayscale16 = 5,
  Orthanc::PixelFormat_RGB24 = 1,
  Orthanc::PixelFormat_RGBA32 = 2,
  Orthanc::PixelFormat_Grayscale8 = 3,
  Orthanc::PixelFormat_Grayscale16 = 4
}
 
enum  Orthanc::ImageExtractionMode {
  Orthanc::ImageExtractionMode_Int16 = 4,
  Orthanc::ImageExtractionMode_Preview = 1,
  Orthanc::ImageExtractionMode_UInt8 = 2,
  Orthanc::ImageExtractionMode_UInt16 = 3
}
 

Detailed Description

Enumeration Type Documentation

The extraction mode specifies the way the values of the pixels are scaled when downloading a 2D image.

Enumerator
ImageExtractionMode_Int16 

Truncation to the [-32768, 32767] range.

ImageExtractionMode_Preview 

Rescaled to 8bpp.

The minimum value of the image is set to 0, and its maximum value is set to 255.

ImageExtractionMode_UInt8 

Truncation to the [0, 255] range.

ImageExtractionMode_UInt16 

Truncation to the [0, 65535] range.

The memory layout of the pixels (resp. voxels) of a 2D (resp. 3D) image.

Enumerator
PixelFormat_SignedGrayscale16 

Graylevel, signed 16bpp image.

The image is graylevel. Each pixel is signed and stored in two bytes.

PixelFormat_RGB24 

Color image in RGB24 format.

This format describes a color image. The pixels are stored in 3 consecutive bytes. The memory layout is RGB.

PixelFormat_RGBA32 

Color image in RGBA32 format.

This format describes a color image. The pixels are stored in 4 consecutive bytes. The memory layout is RGBA.

PixelFormat_Grayscale8 

Graylevel 8bpp image.

The image is graylevel. Each pixel is unsigned and stored in one byte.

PixelFormat_Grayscale16 

Graylevel, unsigned 16bpp image.

The image is graylevel. Each pixel is unsigned and stored in two bytes.