<< bricontra Image_Processing_Tool_3 dendrogram >>

Image_Processing_Tool_3 >> Image_Processing_Tool_3 > colsierra

colsierra

It generates color halftone image using Sierra's error diffusion method.

Calling Sequence

y = colsierra(x)
y = colsierra(x,opt)

Arguments

x

A 3-d array representing a color image.

opt

A number 1(default),2 or 3 to select any of Sierra's methods.

y

A 3-d binary array representing the color halftone of the given input image.

Description

It computes the color halftone of a given color image using any of the Sierra's error diffusion methods. If only the color image is given as input, it the second argument opt is taken as 1 correspoding to Sierra's hlftoning using Filter-lite. If opt=2, then haltoning is done using Sierra's 3x5 filter and if opt=3,hlftoning is done using Sierra's 5x5 filter.

Examples

x=imread('lena.png');
// Color halftoning using Filter-lite
y=colsierra(x);
imshow(unit8(y*255))

// Color halftoning using Sierra's 5x5 filter
y1=colsierra(x,3);
imshow(uint8(y1*255))

See Also

Authors

<< bricontra Image_Processing_Tool_3 dendrogram >>