Thursday, 29 March 2012

Terms Definition

Sebelum kita menkaji dgn lebih dalam pasal image processing..kita perlu tahu apakah itu image?? apakah itu teknik2 yg terlibat dlm image processing, kepentingan nya dan etc...jgn boring bace! check it out!! 

define an image ??
image adalah 2D function f(x,y) dimana x dan y adalah spatial plane coordinates dan the amplitude of f  at any pair of coordinates (x,y) di panggil intensity or graylevel or brightness of the image at that point.



define brightness ?
brightness of an object dilihat berdasar kan luminance surround. 2 objects tapi berada pada persekitaran yg berbeza boleh mempunyai kadar luminance yg sama tetapi kadar brightness yg berbeza..


define gray level ??
gray level refer to the scalar measure of intensity that range from warna hitam, ke warna gray dan akhir sekali warna putih..


define resolution ??
resolution adalah the smallest number of discernible detail in an image.
spatial resolution is the smallest number of discernible detail in an image.
gray level resolution is the smallest discernible change in gray level. 



define pixels ??
an image is composed of a finite number of elements which has a particular location or value. these elements are referred to as pixels.


define digital image processing ??
the process of digital images by means digital computer. 

  
steps involve in digital image processing..
1. image acquisition
2. preprocessing
3. segmentation
4. representation and description
5. recognition and interpretation






you an go to this link to get more questions and answer in image processing..





Monday, 26 March 2012

Lab 3

Well, what we learned last week?? here's a recap on what we did.

Intensity transformation function

Photographic negative (imcomplement)
-imagine this as turning the black color to white and white color to black. the gradient in between is also reverse. here we turns the white cat to black cat using this code. its vice versa.

>> I = imread('cat.jpg');
>>imshow(I)
>> J=imcomplement(I);
>>figure,imshow(J)




Gamma transformation (imadjust)

>> J1 = imadjust(I,[],[],1);
>> J2 = imadjust(I,[],[],3);
>> J3 = imadjust(I,[],[],0.4);
>>imshow(J1);
>>figure, imshow(J2);
>>figure, imshow(J3);

Algorithmic Transformation (c*log(1+f))
>>imshow(I)
>> I2 = im2double(I);
>> J4 = 1 * log(1 + I2);
>> J5 = 2 * log(1 + I2);
>> J6 = 5 * log(1 + I2);
>>figure, imshow(J4)
>>figure, imshow(J5)
>>figure, imshow(J6)
 



Contrast-stretching transformation( 1. / (1 + ( m./(double (f) + eps ) ) . ^ E )
>> contrast1 = 1./(1 + (m ./(I2 + eps )).^4);
>>figure, imshow(contrast1)
>> contrast2 = 1./(1 + (m ./(I2 + eps )).^5);
>> contrast3 = 1./(1 + (m ./(I2 + eps )).^10);
>>figure, imshow(contrast2)
>>figure, imshow(contrast3)
>> contrast4 = 1./(1 + (m ./(I2 + eps )).^-5);
>>figure, imshow(contrast4)
>> contrast5 = 1./(1 + (m ./(I2 + eps )).^-1);
>>figure, imshow(contrast5)
>>figure, imshow(I2)
>>figure, imshow(I)




Tuesday, 13 March 2012

Lab 1

In lab 1, we learn how to:
  • read and display an image
  • check how the image appears in the workspace
  • perform histogram equalization on the image
  • write the image to a disk
  • get information about a graphics file
Firstly, to read an image file we use the I=imread('pout.tif'); command. 
The pout.tif according to the image name. 
Then type imshow(I) to show the image file. 
To view the image file size in memory, we used the whos command. 
After that we put the figure, imhist(I) to show the image histogram. 
As we can see, the histogram show that the intensity not cover the potential range of image which is [0, 255].
Then we used the I2 = histeq(I); command to improve the intensity into the full potential range, also improving the contrast. 
After that we can display the image file and the histogram using the figure, imshow(I2) and figure, imhist(I2) command. 
We can see that the new histogram show the pixel value extend across the full range of the possible value.
Lastly, if u want to save the new image file, type the imwrite (I2, 'pout2.png'); command and type imfinfo('pout2.png') to view the image information....

That's all... Thanks you ;)

Tuesday, 6 March 2012

THIS IS OUR OFFICIAL BLOG

ASSALAMUALAIKUM.

Welcome fellow citizens. This blog belongs to:

1. Shakir
2. Siti Nadiah
3.Wan Nadzirah


Thats all.