ImageGear for C and C++ on Windows v20.3 - Updated
MED_modality_transform_apply
API Reference Guide > MD Component API Reference > MD Component Functions Reference > Modality Transform Functions > MED_modality_transform_apply

If hModalityLUT is not NULL, this function applies Modality LUT to the specified value.

Declaration:

 
Copy Code
AT_INT MED_modality_transform_apply(
        const AT_MED_MODALITY_RESCALE* lpRescale,
        HIGLUT hModalityLUT,
        AT_INT Value
);

Arguments:

Name Type Description
lpRescale const AT_MED_MODALITY_RESCALE* AT_MED_MODALITY_RESCALE structure.
hModalityLUT HIGLUT Modality LUT handle.
Value AT_INT Value to which to apply Modality transform.

Return Value:

Returns the resulting pixel value.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

If hModalityLUT is NULL, this function applies the linear modality transform (lpRescale) to the specified value. For 17-32 bit values, please use MED_modality_transform_apply_64().

Is this page helpful?
Yes No
Thanks for your feedback.