Friday, May 17, 2013

ARITHMETIC OPERATIONS ON IMAGE

Unknown | 6:11 PM |

 

Arithmetic operations addition,subtraction, division,and multiplication which is performed pixel by pixel between two images or among many images

Addition operation

which is also called pixel addition. addition operator add two images in pixel by pixel fashion .matlab coding is given below
coding :

>>ima1=imread(‘image1.tif’)
>>ima2-imread(‘image2.tif’);
>>sum=ima1+ima2;

image
addition can also done using in-build matlab command
>>imadd(ima1,ima2);
image
any integer value can be added to an image matrix
image

Subtraction operation

which is also called pixel subtraction. subtraction operator subtract two images in pixel by pixel fashion .matlab coding is given below
coding :
>>ima1=imread(‘image1.tif’)
>>ima2-imread(‘image2.tif’);
>>sub=ima1-ima2;
image
subtraction can also done using in-build matlab command
>>imsubtract(ima1,ima2);
image
any integer value can be subtracted from an image matrix
image

Multiplication operation

which is also called pixel multiplication. multiplication operator multiply two images in pixel by pixel fashion .matlab coding is given below
coding :
>>ima1=imread(‘image1.tif’)
>>ima2-imread(‘image2.tif’);
>>mul=ima1.*ima2;
dot(.) operator used to perform pixel wise operation
image
multiplication can also done using in-build matlab command
>>immultiply(ima1,ima2);
image
any integer value can multiply an image matrix
image

Division operation

which is also called pixel division.Division operator divide one image by other in pixel by pixel fashion .matlab coding is given below
coding :
>>ima1=imread(‘image1.tif’)
>>ima2-imread(‘image2.tif’);
>>mul=ima1./ima2;
dot(.) operator used to perform pixel wise operation.
image
division can also done using inbuild matlab command
>>imdivide(ima1,ima2);
image
any integer value can divide an image matrix
image

1 comment:

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Search

Infolinks In Text Ads

Total Pageviews

Subscribe here

Enter your email address:

Delivered by FeedBurner