This commit is contained in:
sfop
2016-10-05 14:13:26 +02:00
parent 1e9ba56813
commit ed20ffb991
3 changed files with 14 additions and 14 deletions

View File

@@ -628,6 +628,7 @@ public class ScreenPanel extends Panel {
if (data != null) {
//img = Utils.grayscale(img);
int profileSize = Math.min(data.getWidth(), data.getHeight())/4;
//int profileSize = 50;
try {
double[] sum = (double[]) Convert.toDouble(data.integrateVertically(true));
@@ -649,6 +650,7 @@ public class ScreenPanel extends Panel {
int[] y = new int[x.length];
for (int i = 0; i < x.length; i++) {
y[i] = (int) (data.getHeight() - 1 - ((fit[i] / maxPlot) * profileSize));
// y[i] = (int) (- 1 - ((fit[i] / maxPlot) * profileSize));
}
vpoly = new Overlays.Polyline(fitPen, x, y);
}
@@ -701,7 +703,10 @@ public class ScreenPanel extends Panel {
text.setFixed(true);
text.setAnchor(Overlay.ANCHOR_VIEWPORT_TOP_LEFT);
}
//hpoly.setPassive(false);
//vpoly.setPassive(false);
//hpoly.setAnchor(Overlay.ANCHOR_VIEWPORT_LEFT);
//vpoly.setAnchor(Overlay.ANCHOR_VIEWPORT_BOTTOM);
return new Overlay[]{hpoly, vpoly, cross, text};
}
return null;