Login  Register

Re: better line length measurement...

Posted by Cammer, Michael on Mar 25, 2011; 3:05am
URL: http://imagej.273.s1.nabble.com/better-line-length-measurement-tp3685292p3685295.html

It should say, the edge coordinates, not all coordinates...

_________________________________________
Michael Cammer, Assistant Research Scientist
Skirball Institute of Biomolecular Medicine
Lab: (212) 263-3208  Cell: (914) 309-3270

________________________________________
From: ImageJ Interest Group [[hidden email]] On Behalf Of Cammer, Michael [[hidden email]]
Sent: Thursday, March 24, 2011 11:03 PM
To: [hidden email]
Subject: Re: better line length measurement...

This sounds like something I wrote years ago (and please don't ask me to dig up the code from 2004 maybe) to calculate the distance of endocytic vesicles inside cells to the surface of the cell.  The cells were very bright fluorescent protein so each slice of a confocal Z stack was thresholded, selected, and the XY coordinates of the ROI from each slice were stored.  Then the user clicked on each vesicle and these XYZ center coordinates were stored in an array.  Then the distance from each vesicle to each point on the 3D border was calculated to find the shortest distance for each.  It was inelegant brute force but worked.  Instead of reporting distance, you could report the coordinates to define the perpendicular.
_________________________________________
Michael Cammer, Assistant Research Scientist
Skirball Institute of Biomolecular Medicine
Lab: (212) 263-3208  Cell: (914) 309-3270

________________________________________
From: ImageJ Interest Group [[hidden email]] On Behalf Of Jim Passmore [[hidden email]]
Sent: Thursday, March 24, 2011 10:39 PM
To: [hidden email]
Subject: Re: better line length measurement...

Nick,

I've thought of setting up ImageJ to do something similar.  Wayne posted a
macro a while back that measured perpendicular distance to lines.  His
approach began by having user draw a line, then pressing a key to store that
line.  The line stayed selected, and you could simply drag it by grabbing
the center point.  Once it was repositioned, you could press another key to
store the second line.  The process went on from there, but I could see
stopping here and calculating the distance between the lines.

In case you're comfortable mucking around in macro code, I'll attach the
file.  No credit due to me--it was all Wayne.  At some point I'm going to
adapt it to create such a tool, but my application will require creating and
filling in a results table as well.

Hope this gets you started.

*Jim Passmore
*Sealed Air Corporation

------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================

------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================