Thursday, September 4, 2008

A17 – Basic Video Processing

This activity is all about video processing.

Video is a sequence of still images representing scenes in motion. Video processing is the use of different image processing techniques for each still images in a video.

In our video, we are concern with the diffusion of ink in water. Diffusion is the natural process of intermingling of the molecules of two substances. We are concerned with the area of the ink that is diffused in water.

Using the images below,


image 1
Finding the threshold of the image, using the image below

image 2
After finding the threshold, we can change the images to binary.

image 3
Our region of interest is the ink in the middle of the water. Finding the area of the ROI for each images by pixel counting. We can find the plot below
image 4
We will compare image 4 with the image below.
image 5
We will consider image 5 as the theoretical values for area. This plot is from 'Ink diffusion in water' by Lee S. et. al, 2004.

We can see that there is error in the area of the diffusion of ink in water. It is because of the other part of the images that is not part of the ROI but is still considered in pixel counting.

//code//
t=108/255;
c=[];
for i=1:9
im=imread('vid000'+string(i)+'.jpg');
imb=im2bw(im, t);
c(i)=sum(abs(1-imb));
end
for i=10:99
im=imread('vid00'+string(i)+'.jpg');
imb=im2bw(im, t);
c(i)=sum(abs(1-imb));
end
plot(c);

Acknowledgements:
Instru Lab- for the place
Gerold - for the code
Benj and Billy - for being my groupmates.. :)
http://mitgcm.org/eh3/Tracer_work/papers/ejp4_2_020.pdf


Grade: 10/10
because I think I did what is needed to do. :)

0 comments:

 
template by suckmylolly.com