Obtaining perpendicular Plot Profiles at 15, 45, 65, 85% the length of a ROI

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Obtaining perpendicular Plot Profiles at 15, 45, 65, 85% the length of a ROI

Naeem
Dear All,
I'm analysing images of cilia (essentially just an image of a curvy line).
After trying to work out perpendicular plot profiles to a segmented line ROI- I've straightened the image so that I can use a straight line. This might simplify things.
Now, I'd like to figure out how from a straight line ROI- say 31px in width- along the cilium's length, how can I obtain plot profiles (1px in width) at say 15, 45, 65 and 85% along the cilium (length of straight line ROI).
Any suggestions and discussion would be most welcomed.
Reply | Threaded
Open this post in threaded view
|

Re: Obtaining perpendicular Plot Profiles at 15, 45, 65, 85% the length of a ROI

Naeem
 Further to my message, I've used this macro:

 count = roiManager("count");
  if (count==0)
     exit("ROI Manager line selection required");
  roiManager("select", count-1);
  if (selectionType!=5)
     exit("Straight line selection required");
  run("Rotate...", "angle=90");
  roiManager("Add");
  roiManager("Show All without labels");

And I can then adjust it to 1px in width.
So, the only question now, is how to get the perpendicular profiles at 15%,45%,65% and 85% of the ROI length.