Segment Method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short Segment (ILEADRaster* pRaster, long lThreshold, SegmentConstants Flags)

Overview

Refer to Applying Artistic Effects

Remarks

(Raster Pro and above toolkits) Divides the bitmap into segments where each segment’s pixels have approximately the same color (homogenous color).

This method divides the images into segments according to its pixel values. The segment shapes will be arbitrary. Adjacent pixels with approximately the same values are put together into homogenous segments. The method may be performed on the RGB and YUV color spaces.

This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

Intensity method, GammaCorrect method, Contrast method, HistoContrast method, StretchIntensity method, RemapIntensity method, Invert method, Hue method, Saturation method, Fill method, GetHistogram method, Sharpen method, Mosaic method, Emboss method, Average method, Median method, AddNoise method, IntensityDetect method, SpatialFilter method, BinaryFilter method, MaxFilter method, MinFilter method, Oilify method, Solarize method, WindowLevel method, Posterize method, AddShadow method, HueSaturationIntensity method, ColorReplace method, GetObjectInfo method, MathFunction method, RevEffect method, SubtractBackground method, UserFilter method

Topics:

Raster Images: Modifying Intensity Values

 

Raster Images: Artistic Effects