Concatenator.run(new ImagePlus(), new ImagePlus());

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Concatenator.run(new ImagePlus(), new ImagePlus());

Fred Damen
Greetings,

I am trying to use the Concatenator class static method
run(ImagePlus,ImagePlus) and it does not seem to be found.

...: error: no suitable method found for run(ImagePlus,ImagePlus)
Concatenator.run(new ImagePlus(), new ImagePlus());
            ^
    method Concatenator.run(String) is not applicable
      (actual and formal argument lists differ in length)
    method Concatenator.run() is not applicable
      (actual and formal argument lists differ in length)
...: error: no suitable method found for run(ImagePlus,ImagePlus)
(new Concatenator()).run(new ImagePlus(), new ImagePlus());
                    ^
    method Concatenator.run(String) is not applicable
      (actual and formal argument lists differ in length)
    method Concatenator.run() is not applicable
      (actual and formal argument lists differ in length)

The following lines compile fine:
(new Concatenator()).run("");
(new Concatenator()).concatenate(new ImagePlus[1],false);

The following webpage suggests that the aforementioned run method exists:
https://imagej.nih.gov/ij/developer/api/ij/plugin/Concatenator.html
https://imagej.nih.gov/ij/developer/source/ij/plugin/Concatenator.java.html

My assumption is that there is a compiler glitch involved and someone more
intimate with ImageJ development can rectify this, but ...

Pardon my Java naivete but how does one look at the class definition that is
being compiled / linked against.  In C/C++ I would start by looking at the
.../include/Concatnator.h file from the compiler command line.

Thanks in advance,

Fred

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Concatenator.run(new ImagePlus(), new ImagePlus());

Wayne Rasband-2
> On Mar 11, 2018, at 9:54 PM, Fred Damen <[hidden email]> wrote:
>
> Greetings,
>
> I am trying to use the Concatenator class static method
> run(ImagePlus,ImagePlus) and it does not seem to be found.

This JavaScript example works using ImageJ 1.51v

  i1 = IJ.openImage("http://wsr.imagej.net/images/boats.gif");
  i2 = IJ.openImage("http://wsr.imagej.net/images/bridge.gif");
  i3 = Concatenator.run(i1, i2);
  i3.show();’

The Concatenator.run(ImagePlus,ImagePLus) method was added in ImageJ 1.51e so you need to be using a recent version of ImageJ.

-wayne


> ...: error: no suitable method found for run(ImagePlus,ImagePlus)
> Concatenator.run(new ImagePlus(), new ImagePlus());
>            ^
>    method Concatenator.run(String) is not applicable
>      (actual and formal argument lists differ in length)
>    method Concatenator.run() is not applicable
>      (actual and formal argument lists differ in length)
> ...: error: no suitable method found for run(ImagePlus,ImagePlus)
> (new Concatenator()).run(new ImagePlus(), new ImagePlus());
>                    ^
>    method Concatenator.run(String) is not applicable
>      (actual and formal argument lists differ in length)
>    method Concatenator.run() is not applicable
>      (actual and formal argument lists differ in length)
>
> The following lines compile fine:
> (new Concatenator()).run("");
> (new Concatenator()).concatenate(new ImagePlus[1],false);
>
> The following webpage suggests that the aforementioned run method exists:
> https://imagej.nih.gov/ij/developer/api/ij/plugin/Concatenator.html
> https://imagej.nih.gov/ij/developer/source/ij/plugin/Concatenator.java.html
>
> My assumption is that there is a compiler glitch involved and someone more
> intimate with ImageJ development can rectify this, but ...
>
> Pardon my Java naivete but how does one look at the class definition that is
> being compiled / linked against.  In C/C++ I would start by looking at the
> .../include/Concatnator.h file from the compiler command line.
>
> Thanks in advance,
>
> Fred

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Concatenator.run(new ImagePlus(), new ImagePlus());

Fred Damen
Thanks Wayne,

As the webpages that I referenced suggested that the methods existed in ImageJ
back in 2006 and I installed ImageJ in 2017, this was not the cause that I
assumed.  How would I determine this myself?

Thanks in advance,

Fred


On Sun, March 11, 2018 11:38 pm, Wayne Rasband wrote:

>> On Mar 11, 2018, at 9:54 PM, Fred Damen <[hidden email]> wrote:
>>
>> Greetings,
>>
>> I am trying to use the Concatenator class static method
>> run(ImagePlus,ImagePlus) and it does not seem to be found.
>
> This JavaScript example works using ImageJ 1.51v
>
>   i1 = IJ.openImage("http://wsr.imagej.net/images/boats.gif");
>   i2 = IJ.openImage("http://wsr.imagej.net/images/bridge.gif");
>   i3 = Concatenator.run(i1, i2);
>   i3.show();’
>
> The Concatenator.run(ImagePlus,ImagePLus) method was added in ImageJ 1.51e so
> you need to be using a recent version of ImageJ.
>
> -wayne
>
>
>> ...: error: no suitable method found for run(ImagePlus,ImagePlus)
>> Concatenator.run(new ImagePlus(), new ImagePlus());
>>            ^
>>    method Concatenator.run(String) is not applicable
>>      (actual and formal argument lists differ in length)
>>    method Concatenator.run() is not applicable
>>      (actual and formal argument lists differ in length)
>> ...: error: no suitable method found for run(ImagePlus,ImagePlus)
>> (new Concatenator()).run(new ImagePlus(), new ImagePlus());
>>                    ^
>>    method Concatenator.run(String) is not applicable
>>      (actual and formal argument lists differ in length)
>>    method Concatenator.run() is not applicable
>>      (actual and formal argument lists differ in length)
>>
>> The following lines compile fine:
>> (new Concatenator()).run("");
>> (new Concatenator()).concatenate(new ImagePlus[1],false);
>>
>> The following webpage suggests that the aforementioned run method exists:
>> https://imagej.nih.gov/ij/developer/api/ij/plugin/Concatenator.html
>> https://imagej.nih.gov/ij/developer/source/ij/plugin/Concatenator.java.html
>>
>> My assumption is that there is a compiler glitch involved and someone more
>> intimate with ImageJ development can rectify this, but ...
>>
>> Pardon my Java naivete but how does one look at the class definition that is
>> being compiled / linked against.  In C/C++ I would start by looking at the
>> .../include/Concatnator.h file from the compiler command line.
>>
>> Thanks in advance,
>>
>> Fred
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Concatenator.run(new ImagePlus(), new ImagePlus());

Herbie
Good day Fred,

please stay informed about the state of ImaegJ by consulting the release
notes at:
<https://imagej.nih.gov/ij/notes.html>

There you'll find a recent change:

"*1.51e 5 August 2016*
Thanks to Philippe Carl, fixed a bug that caused the
Image>Stacks>Tools>Concatenate command to not be correctly recorded when
the Recorder was not in "Macro" mode."

HTH

Herbie

::::::::::::::::::::::::::::::::::::::::
Am 12.03.18 um 15:38 schrieb Fred Damen:

> Thanks Wayne,
>
> As the webpages that I referenced suggested that the methods existed in ImageJ
> back in 2006 and I installed ImageJ in 2017, this was not the cause that I
> assumed.  How would I determine this myself?
>
> Thanks in advance,
>
> Fred
>
>
> On Sun, March 11, 2018 11:38 pm, Wayne Rasband wrote:
>>> On Mar 11, 2018, at 9:54 PM, Fred Damen <[hidden email]> wrote:
>>>
>>> Greetings,
>>>
>>> I am trying to use the Concatenator class static method
>>> run(ImagePlus,ImagePlus) and it does not seem to be found.
>>
>> This JavaScript example works using ImageJ 1.51v
>>
>>    i1 = IJ.openImage("http://wsr.imagej.net/images/boats.gif");
>>    i2 = IJ.openImage("http://wsr.imagej.net/images/bridge.gif");
>>    i3 = Concatenator.run(i1, i2);
>>    i3.show();’
>>
>> The Concatenator.run(ImagePlus,ImagePLus) method was added in ImageJ 1.51e so
>> you need to be using a recent version of ImageJ.
>>
>> -wayne
>>
>>
>>> ...: error: no suitable method found for run(ImagePlus,ImagePlus)
>>> Concatenator.run(new ImagePlus(), new ImagePlus());
>>>             ^
>>>     method Concatenator.run(String) is not applicable
>>>       (actual and formal argument lists differ in length)
>>>     method Concatenator.run() is not applicable
>>>       (actual and formal argument lists differ in length)
>>> ...: error: no suitable method found for run(ImagePlus,ImagePlus)
>>> (new Concatenator()).run(new ImagePlus(), new ImagePlus());
>>>                     ^
>>>     method Concatenator.run(String) is not applicable
>>>       (actual and formal argument lists differ in length)
>>>     method Concatenator.run() is not applicable
>>>       (actual and formal argument lists differ in length)
>>>
>>> The following lines compile fine:
>>> (new Concatenator()).run("");
>>> (new Concatenator()).concatenate(new ImagePlus[1],false);
>>>
>>> The following webpage suggests that the aforementioned run method exists:
>>> https://imagej.nih.gov/ij/developer/api/ij/plugin/Concatenator.html
>>> https://imagej.nih.gov/ij/developer/source/ij/plugin/Concatenator.java.html
>>>
>>> My assumption is that there is a compiler glitch involved and someone more
>>> intimate with ImageJ development can rectify this, but ...
>>>
>>> Pardon my Java naivete but how does one look at the class definition that is
>>> being compiled / linked against.  In C/C++ I would start by looking at the
>>> .../include/Concatnator.h file from the compiler command line.
>>>
>>> Thanks in advance,
>>>
>>> Fred
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html