Login  Register

Perimeter, Does anyone know exactly how perimeter works?

Posted by TLowe on Oct 26, 2014; 4:38pm
URL: http://imagej.273.s1.nabble.com/Perimeter-Does-anyone-know-exactly-how-perimeter-works-tp5010191.html

The perimeter function in ImageJ appears to act on edge pixels, assigning pixels along the edge os a selection then either a +1 length or a sqrt(2) length. It generally follows the equation Y+Xsqrt(2); where Y and X are whole numbers. I've been trying to come up with a list of "rules" for this assignment, but unsuccessfully. I've also been unable to come up with source code that should reveal what rules are being used. Does anyone know exactly how perimeter works?
Tom Lowe
Chemical Technician
Eastman Kodak