Re: Array question?
Posted by
Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/Array-question-tp3695862p3695865.html
On Tuesday 17 June 2008, Sasmita Rath wrote:
> So I did as follows.
> ImageJ>Plugins>New>
>
> I creat a new plugin and run it. My pugin program is as follows:
I believe that you created a new macro, not a plugin.
Plugins are written in the Java language. What you wrote below is in the macro
language. They are different things. You will have to learn the Java language
before writing a plugin.
Here is a start:
http://reds.eivd.ch/form_de_base/SBI/labo5-parrots/ijtutorial.pdf
> a=newArray (24832000);
> z=0;
> for(k=0;k<388;k++) {
>
> run("Text Image... ", "open=[C:\\Documents and
> Settings\\Desktop\\20080423-152704--58C-255x-985ms\\" +1000+k + ".dat]");
> for(i=0;i<512;i++) //width
> {for(j=0; j<125; j++)
>
> //height
> {
> y=getPixel(i,j);
> a[z]=y;
> print(a[z]);
> z=z+1; }
> }
> close();
> }
>