Login  Register

Re: Macro-getOption Built-in function

Posted by dpoburko on Aug 04, 2009; 1:20pm
URL: http://imagej.273.s1.nabble.com/volume-measurement-and-memory-problems-tp3691572p3691578.html

Gabriel Landini wrote:

> On Monday 03 August 2009, Damon Poburko wrote:
>  
>>   If I understand your problem ,you simply need a way to run a
>> Z-projection, where the first and last image are somehow dynamically set.
>>
>> Here is an example:
>>
>> //first slice
>> A = 0;
>> //nslices give you the number of slices, whereas the "slice
>> number/position will be numbered starting at zero
>> B = nslices()-1;
>>
>> run("Z Project...", "start="+ A +" stop=" + B + " projection=[Average
>> Intensity]");
>>    
>
> I think that slices start at "1" and end at "nSlices".
>
> G.
>  
Thanks for the correction Gabriel. I must have been a little off when
writing this.

Cheers,
Damon