ErrorCodes.IMAGE_NOT_GRAY16IMAGE,
image.toString(),
null,
null);
}
Gray16Image imageInput = (Gray16Image) image;
if (this.cX + this.cWidth > image.getWidth() ||
this.cY + this.cHeight > image.getHeight()) {
throw new Error(
Error.PACKAGE.CORE,
jjil.core.ErrorCodes.BOUNDS_OUTSIDE_IMAGE,
image.toString(),
this.toString(),
null);
}
Gray16Image imageResult = new Gray16Image(this.cWidth,this.cHeight);
short[] src = imageInput.getData();
short[] dst = imageResult.getData();
for (int i=0; i<this.cHeight; i++) {
System.arraycopy(
src,
(i+this.cY)*image.getWidth() + this.cX,
dst,