Greetings,
There are two general schemes for dealing with multidimentional arrays in a 1D
array language:
a) Arrays of arrays - which require language support and extra overhead.
b) compute the 1D index from the dimensions and nD indices.
for(x=0; x<nx; x++)
for(y=0; y<ny; y++)
op(array[x+y*nx]);
Enjoy,
Fred
On Wed, April 10, 2019 8:31 am, Philippe CARL wrote:
> Dear all,
>
> For playing with 2D arrays within macros it is usually recommended to use a
> picture object of given width and height and given types.
>
> But this little trick doesnt apply in the case of the string type.
>
> So is there another solution that could be used for 2D arrays of string
> types besides the solution of having a linear array and dealing myself with
> the 2 dimensions?
>
> I thank you very much in advance for your lightings.
>
> My best regards,
>
> Philippe
>
>
>
> Philippe CARL
>
> Laboratoire de Bioimagerie et Pathologies
>
> UMR 7021 CNRS - Université de Strasbourg
>
> Faculté de Pharmacie
>
> 74 route du Rhin
>
> 67401 ILLKIRCH
>
> Tel : +33(0)3 68 85 41 84
>
>
>
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html