MapGivenRange Method
Syntax
CWIMAQDisplayMapping.MapGivenRange Min, Max
Purpose
Maps the pixel values in a specified range to an 8-bit scale.
Remarks
After the execution of this method, the following hold true:
- The policy is set to cwimaqMapGivenRange.
- Range is the specified range.
- NumberOfShifts is undefined.
Parameters
Min As Long
Specifies the minimum value of the range to map.
Max As Long
Specifies the maximum value of the range to map.
Example
' Display the image in Viewer1 by ' mapping a pixel value of 32 to 0 and ' a pixel value of 512 to 255 CWIMAQViewer1.DisplayMapping.MapGivenRange 32, 512