Click or drag to resize

IMcEnhanceMedian Method

Despeckles an image by modifying pixels that vary significantly from their surroundings. This is a statistical filter.

Namespace:  MediaCy.IQL.Filters
Assembly:  MediaCy.IQL.Filters (in MediaCy.IQL.Filters.dll) Version: 10.0.6912.0
Syntax
VB
Function Median ( 
	Optional lPasses As Integer = -1,
	Optional Size As Integer = 3,
	Optional Threshold As Double = 0,
	<OptionalAttribute> vSourceImg As Object
) As McImage

Parameters

lPasses (Optional)
Type: SystemInt32
Number of times to apply the filter. If not given or negative then the Passes property is used. Unless you have changed it, Passes will be 1.
Size (Optional)
Type: SystemInt32
Size of convolution kernel (3, 5, or 7).
Threshold (Optional)
Type: SystemDouble
Percentage (from 0.0 to 100.0) of McImage.RangeMin to McImage.RangeMax by which the center pixel must deviate from the median pixel to be replaced by the median.
vSourceImg (Optional)
Type: SystemObject
Optional input IMcImage.

Return Value

Type: McImage
The resulting McImage.
Remarks
This filter calculates the median value of the intensity inside a 3x3, 5x5, or 7x7 neighborhood and changes the value of the center pixel if its intensity is more than Threshold away from the median. Threshold is given as a percentage of McImage.RangeMin to McImage.RangeMax.
See Also