from
Image Halftoning by Floyd's Method
by Athi
This program converts a gray image into halftone image.
|
| SampleUsage.m |
%Author : Athi Narayanan S
%M.E, Embedded Systems,
%K.S.R College of Engineering
%Erode, Tamil Nadu, India.
%http://sites.google.com/site/athisnarayanan/
%s_athi1983@yahoo.co.in
%Clearing memory and command window
clc;clear all;close all;
%Getting Input
INPUT = 'lena.bmp';
in_img = imread(INPUT);
imshow(in_img);title('Input Image');
%Halftone Image Conversion
halftone_img = floydHalftone(in_img);
figure;imshow(halftone_img);title('Floyd Halftoned Image');
imwrite(halftone_img,'lena_halftone.bmp');
|
|
Contact us at files@mathworks.com