#include "ltwrappr.h"
virtual L_INT LBitmap::GetLinearVOILUT(pCenter, pWidth, uFlags)
L_DOUBLE * pCenter; |
pointer to a variable to be updated |
L_DOUBLE * pWidth; |
pointer to a variable to be updated |
L_UINT uFlags; |
flags |
Gets the window center and the window width, if the LUT stored inside pBitmap is linear. If the LUT stored inside the object is not linear, the function will fail.
Parameter |
Description |
pCenter |
Pointer to a variable to be updated with the center of the range of color intensities that define your window of interest, if the LUT is linear. Cannot be NULL. |
pWidth |
Pointer to a variable to be updated with the range of color intensities that define your window of interest, if the LUT is linear. Cannot be NULL. |
uFlags |
Reserved for future use. Pass 0 for now. |
SUCCESS |
LUT is Linear (success). |
0 |
LUT is not linear (fail). |
<0 |
An error occurred. Refer to Return Codes. |
You have to pay attention to your signed images LUT. The upper half should contain negative values and lower half contains positive values.
This function supports 12 and 16-bit grayscale images. Support for 12 and 16-bit grayscale images is available only in the Document/Medical toolkits.
This function supports signed data images.
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. |
Win32, x64.
checks the linearity of the LUT and computes its window width and center by using the GetLinearVOILUT function.
L_INT LBitmap__GetLinearVOILUTExample(LBitmap * pBitmap, L_DOUBLE * pCenter, L_DOUBLE *pWidth)
{
return pBitmap->GetLinearVOILUT(pCenter, pWidth, 0);
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document