Login  Register

Re: makeRectangle Problem

Posted by BenTupper on Apr 29, 2011; 12:40am
URL: http://imagej.273.s1.nabble.com/makeRectangle-Problem-tp3684750p3684755.html

On Apr 28, 2011, at 7:26 PM, mamech wrote:

> Hello
>
> Are here anybody who knows how to solve the above mentioned problem?  
> or at
> least a workaround for it?
>
> If I do not get the answer from imagej forum itself, this means  
> almost that
> I will not find the answer elsewhere.
>
> I am sure that solution is easy.
>
> Can anyone help me?--

Hi mamech,

It makes it easier to understand what you are asking for if you quote  
the original question.  For those who are missing context, the  
original question can be found here... http://tinyurl.com/3un7xvc

I can only guess, but since "imp" is not argument to IJ.makeRectangle  
then ImageJ will look for open images.  If there are none (because you  
are working in memory) then it seems reasonable to get the error  
"There are no images open."

Have you considered using the ImagePlus.setRoi method instead if  
IJ.makeRectangle?

Cheers,
Ben