double[] profile;
if (getStrokeWidth()==1) {
ImageProcessor ip = imp.getProcessor();
profile = ip.getLine(x1d, y1d, x2d, y2d);
} else {
ImageProcessor ip2 = (new Straightener()).rotateLine(imp,(int)getStrokeWidth());
if (ip2==null) return null;
int width = ip2.getWidth();
int height = ip2.getHeight();
profile = new double[width];
double[] aLine;