Login  Register

MinFerret

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

MinFerret

Romain
3 posts
Hello guys.

I have been desperately browsing the macro library to find out how of the minimum Feret diameter is determined on ImageJ. Does anyone have an idea? (I am looking for the source code, not for the definition of the Feret diameter).

Thanks in advance!

Romain
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: MinFerret

Rasband, Wayne (NIH/NIMH) [E]
1064 posts
On Jun 6, 2013, at 3:55 PM, Romain wrote:

> Hello guys.
>
> I have been desperately browsing the macro library to find out how of the
> minimum Feret diameter is determined on ImageJ. Does anyone have an idea? (I
> am looking for the source code, not for the definition of the Feret
> diameter).

You can search the ImageJ source code on the Developer Resources page at

     http://imagej.nih.gov/ij/developer/

I tried searching for "Feret" and found that the getFeretValues() methods in the Roi and ShapeRoi classes calculate the minimum Feret diameter.

I also tried a "Macros" search on the same page and found that the FeretsDiameter macro at

   http://imagej.nih.gov/ij/macros/FeretsDiameter.txt

calculates the Feret diameter but not minimum Feret.

-wayne

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: MinFerret

Romain
3 posts
Hello.

I have also tried  the searchs, but still I do not have the source code. Concerning the max Feret, I know how it is calculated.  What I do not know is how the min Feret is calculated. I could not find the code of the getFeretValues() method.

Romain
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: MinFerret

Romain
3 posts
Ok I have it now, problem solved, thanks for the answer.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: MinFerret

Michael Doube-4
80 posts
In reply to this post by Romain
Hi Romain,

> is how the min Feret is calculated.

In case anyone else is wondering, it's a minimum caliper distance:

http://cgm.cs.mcgill.ca/~orm/rotcal.html

If I remember it correctly, Wayne's implementation incrementally rotates
the ROI and measures the height of the rotated ROI, keeping the smallest
distance found during half a rotation.

An alternative macro implementation which uses the ROI points is here:

http://doube.org/files/RotatingCalipers.txt


Michael




[RVC Logo - link to RVC Website]<http://www.rvc.ac.uk>    [Twitter icon - link to RVC (Official) Twitter] <http://twitter.com/RoyalVetCollege>     [Facebook icon - link to RVC (Official) Facebook] <http://www.facebook.com/theRVC>     [YouTube icon - link to RVC YouTube] <http://www.youtube.com/user/RoyalVetsLondon?feature=mhee>     [Pinterest icon - link to RVC Pinterest] <http://pinterest.com/royalvetcollege/>

This message, together with any attachments, is intended for the stated addressee(s) only and may contain privileged or confidential information. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Royal Veterinary College (RVC). If you are not the intended recipient, please notify the sender and be advised that you have received this message in error and that any use, dissemination, forwarding, printing, or copying is strictly prohibited. Unless stated expressly in this email, this email does not create, form part of, or vary any contractual or unilateral obligation. Email communication cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, amended, lost, destroyed, incomplete or contain viruses. Therefore, we do not accept liability for any such matters or their consequences. Communication with us by email will be taken as acceptance of the risks inherent in doing so.

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