http://imagej.273.s1.nabble.com/Store-convolutions-in-array-tp5017368p5017369.html
This should also work without storing the kernels in a file.
> Hi all,
>
> I'd like to run some convolutions on an image and rather than run
> each convolution in turn as the macro recorder prints it, like
> below: run("Convolve...", "text1=[0 0 0 0 0\n0 -1 -1 -1 0\n0 -1 12 -1
> 0\n0 -1 -1 -1 0\n0 0 0 0 0\n] normalize");
>
> I'd like to set up a loop that will run through several convolutions.
> I thought i could add the convolutions to an array but not quite sure
> of the syntax of this in the macro language. I thought i could have
> a string array of the convolutions and then do something like:
>
> convolutions = newArray ("text1=[0 0 0 0 0\n0 -1 -1 -1 0\n0 -1 12 -1
> 0\n0 -1 -1 -1 0\n0 0 0 0 0\n] normalize"); run("Convolveā¦", [0]);
>
> I know what i've done is wrong but wondering if its possible and what
> are the correct statements to use?
>
> Thanks for the help,
>
> Matt
>
> -- Matt Pearson Microscopy Facility MRC Human Genetics Unit Institute
> of Genetics and Molecular Medicine (IGMM) University of Edinburgh
> Crewe Road EH4 2XU
>
>
>
>
>
> -- ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
> -- ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>