From: Erwasd W on 17 May 2010 14:53 My group and I need to filter out the right hand side particles from the image, to then calculate the area of the remaining left hand side particles (using bwarea). This is a sample image we created for testing, so in the real application the two types of particles will be mixed. So far we have been able to use im2bw and its threshold argument to take advantage of the lighter colour of the unwanted particles. This created a binary image with the background as white. We then used imcomplement to invert the image so that the bwarea function could sum the area of the now white particles. However using the threshold and im2bw does not filter out all the unwanted particles due to similar colour. We believe that we can eliminate more unwanted particles by taking advantage of the differences in circularity between the two types. The right hand side tend to exhibit thinner less circular shapes. We have used this demo ( http://www.mathworks.com/products/imageb/indexb.html?sec=tour&subsec=demo&file=/products/demos/shipping/images/ipexroundness.html#5 ) to calculate circularity of objects, confirming that the unwanted particles are less circular. However, we are unsure how to erase these objects from the image. Any advice? Here is the sample image. http://img265.imageshack.us/img265/9640/sample1n.jpg
|
Pages: 1 Prev: Help with surf Next: Filtering out particles from image based on circularity |