Login  Register

Re: FloodFiller selectively not performing action

Posted by Gabriel Landini on May 09, 2014; 3:53pm
URL: http://imagej.273.s1.nabble.com/FloodFiller-selectively-not-performing-action-tp5007661p5007662.html

On Friday 09 May 2014 17:14:59 BioVoxxel wrote:
> if(Correction=="Top-Left" || Correction=="Top-Right" ||
> Correction=="Bottom-Left") {
>
> bcFF.fill8(width, height);
> IJ.log("Fill 01");
> imp2.show();
>
> } else if(Correction=="Bottom-Right") {

I think your problem is that you are comparing strings and that is not done
that way in Java.

You need something like:
if (Correction.equals(""Bottom-Right") ....
and so on

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