Core Optical, Inc.
WeightedMedianFilter AssignWeightingArray Method Industrial Strength, Scientific Grade
Assigns an OnlineArray of OnlineInt32 weights to the filter kernel.

Namespace: PrecisionImage.SpatialFiltering
Assembly: PrecisionImage (in PrecisionImage.dll) Version: (

public void AssignWeightingArray(
	int[] weightingArray


Type:  OnlineSystem Int32 
An OnlineArray of type OnlineInt32 containing the integer weights to associate with the filtering kernel.

OnlineSystem ArgumentOutOfRangeException Thrown when one or more of the values in weightingArray is negative.

Use this method to assign the weighting array to the filter kernel. The ordering of the weighting values is row-major i.e. the top row of weights in the weighting array corresponds (spatially) to the top row in the filter kernel and is located at the beginning of the weighting array, followed by the second row, etc. Weighting values cannot be negative otherwise an exception will result.

See Also