[Gimp-developer] [Patch] some more gint->gboolean changes.

2001-08-18 Thread David Odin


  Hi,

I've sent this before, but the gimp's source tree changes too fast...

This patch basically fix some function prototype which are said to
return gint when they really return gboolean. I know this is not that
important, but imho, gimp's sources look better with this patch ;-).

Please apply.

 DindinX

P.S: Sven, this is an adaptation of the previous patch I sent you. I'm
 sorry, I've lost your answer during a mutt crash :-(

-- 
[EMAIL PROTECTED]
Premature optimization is the root of all evil.
-- D.E. Knuth

 gboolean.patch.bz2


Re: [Gimp-developer] Particle Size Analysis

2001-08-18 Thread Dave Neary

On Fri, Aug 10, 2001 at 03:34:26PM +0200, Tobias Benedikt Hoevekamp wrote:
> Hi there,
> 
> I am wondering, if there is a script around, that would
> automatically analyze particle sizes. Enclosed is an
> image of a typical problem: several (sometimes even
> overlapping) more or less spherical particles are given.
> I am interested in a script that finds the number of
> spheres and their diameters.
> 
> Best regards,

This is more complicated than one'd normally expect from an image
manipulation program, but a possible way to go might be to edge
detect, threshold, dilate a few pixels, erod a few pixels (gets rid 
of some noise), and then use something like a circular Hough
transformto check whether a point is a good estimator of the
centre of the circle (this will also give radius estimators), and
then count them. The first few stages of that could definitely be
done in the gimp, but you'd be on your own for the complicated
part (the Hough transform, which is described in (among many
others) "Image Processing, Analysis and Computer Vision" by
Sonka, Hlavak and Boyle).

But as with all reasonably complicated image processing
(automated counting of objects is complicated, I'm afraid) there
are many approaches. You might try one or more of the image
analysis/processing newsgroups for more help.

Cheers,
Dave.

-- 
  .--.
 /  David Neary,  \
| E-Mail [EMAIL PROTECTED] | 
 \ Phone +353-1-872-0654  /
  `--'
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer