Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.11.1
LEADTOOLS Raster Imaging C DLL Help

L_ApplyLinearModalityLUT

Show in webframe

#include "l_bitmap.h"

L_LTIMGCOR_API L_INT L_ApplyLinearModalityLUT (pBitmap, fIntercept, fSlope, uFlags)

pBITMAPHANDLE pBitmap;

/* pointer to the main bitmap handle */

L_DOUBLE fIntercept;

/* rescale intercept */

L_DOUBLE fSlope;

/* rescale slope */

L_UINT uFlags;

/* flags */

Remaps the bitmap pixels by applying a linear transformation described by a rescale slope and an intercept.

Parameter

Description

pBitmap

Pointer to the main bitmap handle.

fIntercept

Rescale intercept

fSlope

Rescale slope

uFlags

A flag that determine the behavior of the function, the user can use one or more flags of the following:

Flags

Meaning

M_LUT_SIGNED

[0x0001] The LUT entries are signed

M_LUT_UPDATE_MIN_MAX

[0x0002] Update MinVal,MaxVal inside the bitmap handle

M_LUT_USE_FULL_RANGE

[0x0004] Do not mask the values in the LUT

M_LUT_ALLOW_RANGE_EXPANSION

[0x0008] Allow the function to increase pBitmap->HighBit (if needed) to be able to hold the data range after applying modality LUT.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function does not support 32-bit grayscale images. It returns the error code ERROR_GRAY32_UNSUPPORTED if a 32-bit grayscale image is passed to this function.

Required DLLs and Libraries

LTIMGCOR

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64, Linux.

See Also

Functions:

L_RemapBitmapIntensity, L_ApplyLinearModalityLUT, L_ApplyVOILUT, L_ApplyLinearVOILUT, L_DicomGetModalityLUTAttributes, L_AdjustBitmapTint, L_GammaCorrectBitmapExt

Topics:

Raster Image Functions: Modifying Intensity Values

 

Changing Brightness and Contrast

 

Raster Image Functions: Changing Brightness and Contrast

Example

For an example, refer to L_ApplyModalityLUT.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.