DCMTK  Version 3.6.1 20150924
OFFIS DICOM Toolkit
Static Public Member Functions | List of all members
DcmSegUtils Class Reference

Class that contains helper functionality for the dcmseg module. More...

Static Public Member Functions

static DcmIODTypes::FramepackBinaryFrame (Uint8 *pixelData, const Uint16 rows, const Uint16 columns)
 Pack the given segmentation pixel data, provided "unpacked", into the packed format expected by DICOM. More...
 
static size_t getBytesForBinaryFrame (const size_t &numPixels)
 Compute the number of bytes requried for a binary pixel data frame, given the number of pixels. More...
 
static DcmIODTypes::FrameunpackBinaryFrame (const DcmIODTypes::Frame *frame, const Uint16 rows, const Uint16 cols)
 Unpacks a binary segmentation frame into a "sparse" pixel data frame. More...
 

Detailed Description

Class that contains helper functionality for the dcmseg module.

Member Function Documentation

static size_t DcmSegUtils::getBytesForBinaryFrame ( const size_t &  numPixels)
static

Compute the number of bytes requried for a binary pixel data frame, given the number of pixels.

Parameters
numPixelsThe total number of pixels
Returns
The number of bytes required to pack the data into a binary segmentation frame
static DcmIODTypes::Frame* DcmSegUtils::packBinaryFrame ( Uint8 *  pixelData,
const Uint16  rows,
const Uint16  columns 
)
static

Pack the given segmentation pixel data, provided "unpacked", into the packed format expected by DICOM.

Parameters
pixelDataPixel data in unpacked format
rowsNumber of rows in the pixel data
columnsThe number of columns in the pixel data
Returns
The frame data if successfull, NULL if an error occurs
static DcmIODTypes::Frame* DcmSegUtils::unpackBinaryFrame ( const DcmIODTypes::Frame frame,
const Uint16  rows,
const Uint16  cols 
)
static

Unpacks a binary segmentation frame into a "sparse" pixel data frame.

Parameters
frameThe input frame in packed format
rowsThe number of rows in the pixel data
colsthe number of cols in the pixel data
Returns
The segmentation frame in unpacked format

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


Generated on Tue Jan 5 2016 for DCMTK Version 3.6.1 20150924 by Doxygen 1.8.9.1