int dLeft = Math.max(0, dTopLeftX - cWidth / 12);
int cWidthExp = Math.min(image.getWidth() - dLeft, cWidth * 7 / 6);
seq.add(new Gray8Crop(dLeft, dTopLeftY, cWidthExp, cHeight));
/* Apply the pipeline to get the cropped image.
*/
seq.push(image);
Image imageResult = seq.getFront();
if (!(imageResult instanceof Gray8Image)) {
throw new jjil.core.Error(
jjil.core.Error.PACKAGE.ALGORITHM,
jjil.algorithm.ErrorCodes.IMAGE_NOT_GRAY8IMAGE,