Hi,
I make a copy of the image using,
run("Duplicate...", "title=Copy");
then just use Copy as the title in the Image Calculator.
imageCalculator("subtract create", "Copy","Edges");
You could also put the following just before your imageCalculator line
mytitle = getTitle();
to store the title of the currently selected window in the variable
mytitle, then the image calculator line would look something like
imageCalculator("subtract create", mytitle,"Edges");
You don't put quotes around mytitle since it's a variable.
Justin
On 12/7/06, Kamila Sroka <
[hidden email]> wrote:
> Hi Everybody!
>
> I would like to create a macro to speed up image analysis. I have 3
> different files for each picture and the analysis consists of dividing
> and multiplying them in a specific order (using image calculator tool).
> When I tried to create a macro it records the command but within it is
> the name of the particular file that was divided/multiplied. Obviously
> the macro does not run if I open another file of the same type but with
> a different name. When I delete the name of the file from the command
> line it does not work either.
>
> Do you have any suggestions?
>
> Thanks
>
> Kamila
>