If you can use a circular selection, these macros (first one taken from Wayne)
will count the number of rays crossing the selection. Be sure to mak the image
binary first. You could easily modify this to use the various line selection
tools and then make use of the get.Profile command.
var xcenter, ycenter, radius, steps; //global variables