/* First convert the color image to black and white by selecting the
* green channel. We use the green channel because it is the highest
* resolution channel on the CCDs used in cellphones.
*/
if (image instanceof RgbImage) {
seq.add(new RgbSelectGray(RgbSelectGray.GREEN));
}
/* Now crop the gray image.
*/
int dLeft = Math.max(0, dTopLeftX - cWidth / 12);
int cWidthExp = Math.min(image.getWidth() - dLeft, cWidth * 7 / 6);