Perimeter Bug

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Perimeter Bug

Zirneklitis
Hi,

I'm not sure were the bugs should be reported. Please redirect as
appropriate.

There is a bug in the measuring of perimeters. For one-part selections
it works as expected. For multi-part selections the perimeter is
measured only in pixels.

For example:

If no scale is set and selection is a 100 × 100 pixel square, the
measurements are as follows:

          Area Perim.
1 10000 400

If no scale is set and selection consists of two 100 × 100 pixel
squares, the measurements are as follows:

          Area Perim.
2 20000 800

If scale is set to 157.48 and selection is a 100 × 100 pixel square, the
measurements are as follows:

          Area Perim.
3 0.403 2.540

If scale is set to 157.48 and selection consists of two 100 × 100 pixel
squares, the measurements are as follows:

          Area Perim.
4 0.806 800


The perimeter should be 5.080.


ImageJ: 1.46p and older
The same problem with imagej-2.0.0-alpha1

(Java: 1.6.0_20 64 bit, OS: Fedora 13)

Best regards,
Karlis

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html