Re: Longest axis/minimum containing sphere of 3D object? Interruption

Posted by Robert Smith on
URL: http://imagej.273.s1.nabble.com/Fiji-Drawing-tools-tp5024409p5024417.html

Please excuse my interruption however may I suggest simply orient the image on your screen, take a screenshot (Plugins > Utilities > Capture image). Then set the Analysis to measure the long and short Feret axis on the image?
Just asking,
Bob


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Kenneth R Sloan<mailto:[hidden email]>
Sent: Wednesday, January 27, 2021 8:49 AM
To: [hidden email]<mailto:[hidden email]>
Subject: Re: Longest axis/minimum containing sphere of 3D object?

I agree that this is the right way to characterize “longest axis”.

But... the OP did ask for Diameter, which is not the same thing.

Also, I have always been suspicious of methods that find eigenvectors and
eigenvalues and then multiply by a magic constant.  This last step has too
many assumptions about the distribution of input points.  My preferred
method is to project the input points on the major axis and scale both axes
so that the major axis matches the maximum extent of the projection.

Consider the difference between a solid object and the points on the
boundary of the object.  This (I think) requires different scaling
constants.  You must take care to verify that your problem matches the
assumptions baked into the method!

If the OP still wants Diameter, my opinion is that:
A) minimum enclosing circle is not quite correct,
B) I would find the 3D Convex Hull and then use the obvious brute force
method of finding the Diameter

Both of these appear to require code that goes beyond existing “off the
shelf” methods.  I suppose that B could be done in the macro language, but
my personal preference would be Java.

The 3D suite can provide a good ESTIMATE of the Diameter, and it is up to
the OP to decide if the estimate is acceptable.  This also looks like the
FASTEST method, if that matters.

On Wed, Jan 27, 2021 at 02:56 Straatman, Kees (Dr.) <[hidden email]>
wrote:

> Dear Svenja,
>
> Maybe the 3D imageJ Suite (3D ImageJ Suite - ImageJ<
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fimagej.net%2F3D_ImageJ_Suite&amp;data=04%7C01%7C%7C4398469693fd43ee50c008d8c2ca5601%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637473521566721277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=XnpkYx%2Fe4LnYdRbZiGdsNh4q47%2BStrH6ALlF2ldhUEM%3D&amp;reserved=0>) can be of use, like  Details about
> 3D ellipsoid fitting [ImageJ Documentation Wiki] (list.lu)<
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fimagejdocu.list.lu%2Ftutorial%2Fplugins%2F3d_ellipsoid&amp;data=04%7C01%7C%7C4398469693fd43ee50c008d8c2ca5601%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637473521566721277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=czcNDrS365D1I3ns8iWnSkZ8QUWjAeN3S6hHe4raYk4%3D&amp;reserved=0> or 3D Roi
> Manager [ImageJ Documentation Wiki] (list.lu)<
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fimagejdocu.list.lu%2Fplugin%2Fstacks%2F3d_roi_manager%2Fstart&amp;data=04%7C01%7C%7C4398469693fd43ee50c008d8c2ca5601%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637473521566721277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=GMPPqBUTQFakUug5lXkcMOPN9Jhy%2FzaHxf0Tu46hEMI%3D&amp;reserved=0>?<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fimagejdocu.list.lu%2Fplugin%2Fstacks%2F3d_roi_manager%2Fstart&amp;data=04%7C01%7C%7C4398469693fd43ee50c008d8c2ca5601%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637473521566721277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=GMPPqBUTQFakUug5lXkcMOPN9Jhy%2FzaHxf0Tu46hEMI%3D&amp;reserved=0%3e?>
>
> Best wishes
>
> Kees
>
>
> Dr Ir K.R. Straatman FRMS
>
> Advanced Imaging Facility
>
> University of Leicester
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.le.ac.uk%2Fadvanced-imaging-facility&amp;data=04%7C01%7C%7C4398469693fd43ee50c008d8c2ca5601%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637473521566721277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=hq%2BwuAkZLlBVpY%2Bdc2c%2FLhDRU4BABc9hA3%2F1k5cUZEI%3D&amp;reserved=0<<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.le.ac.uk%2Fadvanced-imaging-facility&amp;data=04%7C01%7C%7C4398469693fd43ee50c008d8c2ca5601%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637473521566721277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=hq%2BwuAkZLlBVpY%2Bdc2c%2FLhDRU4BABc9hA3%2F1k5cUZEI%3D&amp;reserved=0%3c>
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.le.ac.uk%2Fadvanced-imaging-facility&amp;data=04%7C01%7C%7C4398469693fd43ee50c008d8c2ca5601%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637473521566721277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=hq%2BwuAkZLlBVpY%2Bdc2c%2FLhDRU4BABc9hA3%2F1k5cUZEI%3D&amp;reserved=0
> >
>
>
> ________________________________
> Sent: 26 January 2021 09:03
> Subject: Longest axis/minimum containing sphere of 3D object?
>
> Hello everyone!
>
>
> I have a stack of binary images that is to be interpreted as a 3D image. I
> have background (in black) and one irregular-shaped object in it (the model
> of a soil aggregate). I now want to know the longest axis of this object.
>
>
> I thought the easiest way would be to let a function find the smallest
> containing sphere and take the diameter. I am aware that in BoneJ, there is
> a function that allows to find an optimal sphere based on points that are
> marked by hand. This is, however, not quite what I need and I hope to find
> a solution without too much manual work, since actually, I have a bit more
> than one stack. Is anyone aware of a function that can do that?
>
>
> Another way might be to use the 3D Convex Hull package that can find me
> the vertices of a convex hull of a 3D object. Does anyone have an idea how
> to find the largest pair-wise distance between them in ImageJ? Or is this
> something that's better done with another program?
>
>
> Any hint is appreciated. Thanks in advance!
>
> All the best,
>
> Svenja
>
> --
> ImageJ mailing list:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=04%7C01%7C%7C4398469693fd43ee50c008d8c2ca5601%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637473521566721277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Ek14tJzrYx3IS0bOtWaB%2BlYyt86pGD91V%2BrOaZ%2FbShY%3D&amp;reserved=0
>
> --
> ImageJ mailing list: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=04%7C01%7C%7C4398469693fd43ee50c008d8c2ca5601%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637473521566721277%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Ek14tJzrYx3IS0bOtWaB%2BlYyt86pGD91V%2BrOaZ%2FbShY%3D&amp;reserved=0
>
--
-Kenneth Sloan

--
ImageJ mailing list: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=04%7C01%7C%7C4398469693fd43ee50c008d8c2ca5601%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637473521566731233%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=5mgM4j67kTnrL%2FM0rkAHbABGZxfXt9ZjttsMMCx4TwM%3D&amp;reserved=0


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