Line 10: Line 10:
  
 
Now i added all the 3 dimentions together,so that i can get my original image.But the result wasnt cohernt with my assumption.The final image after combining looked like the following:[[Image:final.jpg]]
 
Now i added all the 3 dimentions together,so that i can get my original image.But the result wasnt cohernt with my assumption.The final image after combining looked like the following:[[Image:final.jpg]]
 +
The final image doesnt look like the original image.All the colour information is lost and the image looks whitish.It looks white because ,on adding all the matrices which are uint8 in type,exceeds 255 and are rounded to 255 which characterizes white.Hence the image looks white.
 +
 +
Alternative : Changing the datatype from uint8 -> double.So that on adding the matrices,i can the correct information about the pixel,without rounding it.
 +
Now on adding the individual dimensions,using linear combination function in matlab,we can get the orginal image,but in grayscale.It looks like the following:[[Image:double.jpg]]

Revision as of 21:12, 22 September 2009

IMAGE DISINTEGRATION

An RGB image is 3 dimensional in nature.First dimension represents R(Red) ,Second dimension-G(Green),Third dimension-B(Blue) respectively.My objective behind this page,was to see that,when an image is disintegrated into the above 3 dimensions and then on recombining the separated parts,will it result in the orgininal image or not.

Tools used : Images(JPEG- format) in 2 different dimensions 94x94 & 1024x768.

Orginal Image: Nature.jpg

Operation :Using Matlab,i got the vector matrix of the image and then separated each dimension's vector matrix and plotted.The datatype of the matrices was uint8 whose range 0-255.On plotting each dimension,this is how the image looks like.ThreeD.jpg

Now i added all the 3 dimentions together,so that i can get my original image.But the result wasnt cohernt with my assumption.The final image after combining looked like the following:Final.jpg The final image doesnt look like the original image.All the colour information is lost and the image looks whitish.It looks white because ,on adding all the matrices which are uint8 in type,exceeds 255 and are rounded to 255 which characterizes white.Hence the image looks white.

Alternative : Changing the datatype from uint8 -> double.So that on adding the matrices,i can the correct information about the pixel,without rounding it. Now on adding the individual dimensions,using linear combination function in matlab,we can get the orginal image,but in grayscale.It looks like the following:Double.jpg

Alumni Liaison

To all math majors: "Mathematics is a wonderfully rich subject."

Dr. Paul Garrett