<< rot90 Image_Processing_Tool_3 skeleton >>

Image_Processing_Tool_3 >> Image_Processing_Tool_3 > sierra

sierra

It generates halftone image using any of three different methods proposed by Frankie Sierra.

Calling Sequence

y = sierra(x)
y = sierra(x,opt)

Arguments

x

A matrix representing a gray scale image whose halftone image will be generated.

opt

A number 1, 2 or 3 to select option for any of three methods proposed by Sierra.

y

A binary matrix representing the halftone image of the input gray scale image.

Description

It computes the haftone image of a gray scale image by using any of the three methods proposed by Frankie Sierra. It takes two input arguments. The first input is the matrix representing a gray scale image. The second input is one of the numbers 1,2 or 3. By default, 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

// reading an image
x=imread('lena.png');
x=rgb2gray(x); 

// Halftoning using Sierra's Filter-lite
y=sierra(x);
imshow(y);

// Halftoning using Sierra 3x5 filter
y1=sierra(x,2);
imshow(y1)
 //Halftoning using Sierra's 5x5 filter
y2=sierra(x,3);
imshow(y3);

See Also

Authors

<< rot90 Image_Processing_Tool_3 skeleton >>