Remove logging
This commit is contained in:
@@ -51,37 +51,6 @@ public class ComplexMorphologyPresenter implements ComplexMorphologyListener {
|
||||
|
||||
Image result = morphologyService.geodesicReconstruction(image, mask);
|
||||
|
||||
|
||||
System.out.println("IMAGE: "
|
||||
+ image.getWidth() + "x" + image.getHeight());
|
||||
|
||||
System.out.println("MASK: "
|
||||
+ mask.getWidth() + "x" + mask.getHeight());
|
||||
|
||||
System.out.println(
|
||||
"Same object? " + (image == mask)
|
||||
);
|
||||
|
||||
System.out.println("Image : " + image.getPixel(0, 0).grayValue());
|
||||
|
||||
System.out.println("Mask : " + mask.getPixel(0, 0).grayValue());
|
||||
System.out.println("Result : " + result.getPixel(0, 0).grayValue());
|
||||
|
||||
double[][] imageData = image.toGrayScale().getRawData();
|
||||
double[][] maskData = mask.toGrayScale().getRawData();
|
||||
|
||||
int violations = 0;
|
||||
|
||||
for (int y = 0; y < image.getHeight(); y++) {
|
||||
for (int x = 0; x < image.getWidth(); x++) {
|
||||
if (imageData[y][x] > maskData[y][x]) {
|
||||
violations++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
System.out.println("Marker > mask pixels: " + violations);
|
||||
|
||||
morphologyState.setReconstruction(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -199,9 +199,7 @@ public class ComplexMorphologyView extends AbstractView implements IComplexMorph
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateReconstruction(Image image) {
|
||||
modeTab.loadImage(RECONSTRUCTION_TAB_TITLE, image);
|
||||
}
|
||||
public void updateReconstruction(Image image) { modeTab.loadImage(RECONSTRUCTION_TAB_TITLE, image); }
|
||||
|
||||
@Override
|
||||
public void updateMedian(Image image) {
|
||||
|
||||
Reference in New Issue
Block a user