Login  Register

Re: selection of picture in a file

Posted by Michael Schmid on Apr 29, 2011; 9:16am
URL: http://imagej.273.s1.nabble.com/selection-of-picture-in-a-file-tp3684803p3684804.html

On 26 Apr 2011, at 11:07, Paul Rostand wrote:

> ...
>
> 1- how to plot a line automatically in the z-axis profile curve  
> (without manual
> click with to mouse)
Image>Stacks>Plot z-axis Profile uses the full image or the current  
selection (aka ROI, region of interest). A ROI can also have only one  
pixel. No need to click anywhere.
Use the Macro Recorder or see the macro functions documentation
   http://rsb.info.nih.gov/ij/developer/macro/functions.html
for setting a selection.

> 2- how to read out the values of the intesections points between  
> the curve and
> the line
Again see the documentation; Plot.getValues(xpoints, ypoints), then  
you need some programming to step through the ypoints array (xpoints  
gives the slice numbers)

> 3-When the whole file is uploaded will it be  any way to delete  
> automatically
> the useless slides according to the previous results ?
Image>Stacks>Set slice and Delete slice should be macro.recordable.  
You can also find the setSlice(n) macro command in the macro  
functions documentation.


Michael