MapGivenPercentRange Method

NI Vision for Visual Basic

MapGivenPercentRange Method

Syntax

CWIMAQDisplayMapping.MapGivenPercentRange Min, Max

Purpose

Maps the pixel values in the relative percentage range (0 to 100) of the cumulated histogram to an 8-bit scale.

Remarks

After the execution of this method, the following hold true:

  • The policy is set to cwimaqMapGivenPercentRange.
  • Range is the relative percentage range (0 to 100) of the cumulated histogram.
  • NumberOfShifts is undefined.

Parameters

Min As Long

Specifies the minimum value of the relative percentage range of the cumulated histogram.

Max As Long

Specifies the maximum value of the relative percentage range of the cumulated histogram.

Example

' Map the 10% - 90% range of the cumulative histogram
' of the image in Viewer1 to an 8-bit scale.
CWIMAQViewer1.DisplayMapping.MapGivenPercentRange 10, 90

See Also

Policy

Range