This function associates a LUT buffer with the specified display. It can also be used to disassociate a LUT from the display.
If and when the display is selected (MdispSelect()), the change required to produce the display (LUT) effect occurs. MIL checks the target display to determine whether or not a LUT is supported. If not, an error is generated.
When displaying using a LUT, note the following:
If the LUT buffer values are changed while the image is selected on the display, the changes will not take effect until the next call is made to MdispLut(). That is, the LUT is not automatically updated when the LUT buffer is modified.
You cannot select a 3-band image buffer to a display that is associated with a LUT buffer. In addition, the image buffer must be an 8- or 16-bit buffer. If these conditions are not respected, an error is generated.
The view mode of the display cannot be set to M_AUTO_SCALE or M_MULTI_BYTES.
The number of LUT buffer entries must be the same as the maximum number of intensities that can be represented in the displayed buffer. In other words, if you want to map an 8-bit 1-band image (that is, an image that can have 256 intensities), your LUT must also have 256 entries.
To disassociate a LUT buffer from a display, call MdispLut() with M_DEFAULT.
For more information, see the Lookup tables in general section of Chapter 20: Lookup tables and the Mapping 1-band images through a LUT upon display section of Chapter 21: Displaying an image.
Specifies a LUT buffer. This parameter should be set to one of the following values:
For the identifier of the previously
allocated LUT buffer
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that any association to a LUT buffer is removed from the specified display. |
||||||||||||||||||||||||||||||||||||||
M_PSEUDO |
Specifies the default pseudo-color LUT buffer as the LUT buffer to associate with the display. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL LUT buffer identifier |
Specifies the identifier of the custom LUT buffer (allocated with MbufAlloc1d() or MbufAllocColor() with M_LUT) to associate with the display. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll; mildisplay.dll. |