Startup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user