this.nMaxY = (int) Math.max(p00.getY(),
Math.max(p01.getY(), Math.max(p10.getY(), p11.getY())));
this.nXOffset = -this.nMinX;
this.nYOffset = -this.nMinY;
if (this.nWarpOrder == Gray8AffineWarp.WARP_X_FIRST) {
Gray8Image grayX = warpX((Gray8Image) image);
//super.setOutput(new Gray8OffsetImage(grayX, this.nXOffset, this.nYOffset));
Gray8Image grayY = warpY(grayX);
super.setOutput(new Gray8OffsetImage(grayY, this.nXOffset, this.nYOffset));
} else {
Gray8Image grayY = warpY((Gray8Image) image);
//super.setOutput(new Gray8OffsetImage(grayY, this.nXOffset, this.nYOffset));
Gray8Image grayX = warpX(grayY);
super.setOutput(new Gray8OffsetImage(grayX, this.nXOffset, this.nYOffset));
}
}