Class that contains helper functionality for the dcmseg module.
More...
Class that contains helper functionality for the dcmseg module.
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
-
numPixels | The 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
-
pixelData | Pixel data in unpacked format |
rows | Number of rows in the pixel data |
columns | The number of columns in the pixel data |
- Returns
- The frame data if successfull, NULL if an error occurs
Unpacks a binary segmentation frame into a "sparse" pixel data frame.
- Parameters
-
frame | The input frame in packed format |
rows | The number of rows in the pixel data |
cols | the 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:
- dcmseg/include/dcmtk/dcmseg/segutils.h