It generates color halftone image using Sierra's error diffusion method.
y = colsierra(x)
y = colsierra(x,opt)
A 3-d array representing a color image.
A number 1(default),2 or 3 to select any of Sierra's methods.
A 3-d binary array representing the color halftone of the given input image.
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.
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)) | ![]() | ![]() |