Segment Method (ILEADRasterProcess)
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