Skip to content

Commit

Permalink
Updates to ShowImage
Browse files Browse the repository at this point in the history
  • Loading branch information
sjcross committed Aug 16, 2024
1 parent 6f52f60 commit 79748c9
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@ public Status process(Workspace workspace) {
Image outputImage = ImageFactory.createImage(outputImageName, inputImagePlus);
workspace.addImage(outputImage);
if (showOutput)
outputImage.showImage(outputImageName, LUT.createLutFromColor(Color.WHITE), false, true);
outputImage.show(outputImageName, LUT.createLutFromColor(Color.WHITE), false, true);

} else {
if (showOutput)
inputImage.showImage(inputImageName, LUT.createLutFromColor(Color.WHITE), false, true);
inputImage.show(inputImageName, LUT.createLutFromColor(Color.WHITE), false, true);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import ij.gui.Roi;
import ij.io.RoiEncoder;
import io.github.mianalysis.mia.MIA;
import io.github.mianalysis.mia.module.Categories;
import io.github.mianalysis.mia.module.Category;
import io.github.mianalysis.mia.module.Module;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public Status process(Workspace workspace) {
break;
}

if (showOutput) image.showImage(title,null,normalisation,composite);
if (showOutput) image.show(title,null,normalisation,composite);

return Status.PASS;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ public static void runTest(Dimension dimension, Filter filter, Logic logic, int
assertNotNull(workspace.getImage("Test_output"));

Image outputImage = workspace.getImage("Test_output");
// new ImageJ();
// expectedImage.showImage();
// outputImage.showImage();
// IJ.runMacro("waitForUser");
assertEquals(expectedImage, outputImage);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,6 @@ public static void runTest(Dimension dimension, Threshold threshold, Logic logic
assertNotNull(workspace.getImage("Test_output"));

Image outputImage = workspace.getImage("Test_output");

// new ij.ImageJ();
// expectedImage.showImage();
// outputImage.showImage();
// IJ.runMacro("waitForUser");

assertEquals(expectedImage, outputImage);

}
Expand Down

0 comments on commit 79748c9

Please sign in to comment.