From: Rakesh bagul on
Hi,
I need to count the threads in a images in the following link and if some are missing, it should display how many are missing.
http://drop.io/o6yf2if

Any idea. Please reply on this.

Rakesh
From: ImageAnalyst on
With no other criteria other than what you stated, this is very easy.
Just sum the gray levels in a region that represents one thread. Then
sum the good, complete image. Then sum your test image and see how
much it's short by and divide by the sum of values in one thread.
E.g.
one thread sums to 100,000
complete image sums to 100,300,000
test image sum sums to 100,000,000
difference = 300,000 which = 3 threads.

Of course adding other difficulties will make this not so robust, such
as having different exposures between the images, noise, object not
centered in the frame, specular reflections, etc.