From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-06-2007 11:06 PM
02-06-2007 11:09 PM
02-16-2007 04:28 PM
02-27-2007 08:54 AM
02-13-2015 03:09 AM
I'm currently stumped with the same problem of minimum Feret diameter. First I came up with the exact same procedure as JamieB. The problem is though that the rotation of the particle will modify its shape. This is neglectable with particles of reasonable size. But from a certain size downward the shape distortions become unacceptable, thus yielding erroneous diameter readings.
So, simple question: Has someone implemented a true minimum Feret diameter computation and is willing to share it?
02-13-2015 11:54 AM
From the questions, I can't quite tell what is desired: the minimum Feret diameter (smallest possible caliper measurement), or the minimum width perpendicular to the max Feret diameter (bounding box with major axis length equal to the max Feret diameter).
Regardless, this little example shows how to calculate both without reinterpolating the image.
02-13-2015 06:45 PM - edited 02-13-2015 06:59 PM
This seems to do the trick, as far as the min feret diameter is concerned. Thanks a lot for the quick - and slick - answer.
BTW: Taking the height AND the width of the global rectangle in "Min Feret Bounding Box.vi" allows you to get the desired value within just above 90 degrees instead doing the whole 360 rotation.
02-16-2015 08:52 AM
Good catch on only needing 90 degrees to find the min Feret diameter. I feel a little foolish to have missed it. Anyway, I think that the general strategy is clear: you can use Mask To ROI along with Particle Analysis.
02-17-2015 07:28 AM
Yep, example was quite self-explaining. I knew the key was to rotate "the coordinate system" instead of the image (or particle), but the detour with the Mask2ROI and transforming the ROI is just clever. Thanks again.