Commit bcd8f6dd authored by gonciarz's avatar gonciarz

Test fixes

parent 22487ec1
......@@ -148,9 +148,9 @@ public class ColocalizationGUI implements ItemListener, ChangeListener, TextList
// Set values in parameters
// TODO: Make parameters able to handle n-channels
iParameters.usecellmaskX = enableMask.get(0);
iParameters.usecellmaskY = enableMask.get(1);
if (numOfChannels == 2) iParameters.usecellmaskY = enableMask.get(1);
iParameters.thresholdcellmask = new Double((thresholdValues.get(0).getText()));
iParameters.thresholdcellmasky = new Double((thresholdValues.get(1).getText()));
if (numOfChannels == 2) iParameters.thresholdcellmasky = new Double((thresholdValues.get(1).getText()));
}
private double expvalue(double slidervalue) {
......
......@@ -48,7 +48,7 @@ public class GenericGUI {
public GenericGUI(ImagePlus aInputImg, boolean aUseGui, Parameters aParameters, boolean aIsConfigReadFromArguments) {
iParameters = aParameters;
iInputImage = aInputImg;
logger.info("GUI input image: " + ImgUtils.getImageInfo(aInputImg));
logger.info("GUI input image: " + (aInputImg == null ? "<nullImg>" : ImgUtils.getImageInfo(aInputImg)));
iUseGui = aUseGui;
iIsConfigReadFromArguments = aIsConfigReadFromArguments;
}
......
......@@ -10,11 +10,9 @@ import java.util.Map;
import org.junit.Test;
import ij.ImagePlus;
import mosaic.bregman.ColocalizationAnalysis.ChannelPair;
import mosaic.bregman.ColocalizationAnalysis.ColocResult;
import mosaic.bregman.ColocalizationAnalysis.RegionColoc;
import mosaic.bregman.GUI.ColocalizationGUI;
import mosaic.bregman.segmentation.Pix;
import mosaic.bregman.segmentation.Region;
import mosaic.test.framework.CommonBase;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment