* (less than the size of the subimages we're supposed to
* be generating).
*/
public void push(Image image) throws jjil.core.Error {
if (!(image instanceof Gray8Image)) {
throw new Error(
Error.PACKAGE.ALGORITHM,
ErrorCodes.IMAGE_NOT_GRAY8IMAGE,
image.toString(),
null,
null);
}
if (image.getWidth() < this.nWidth || image.getHeight() < this.nHeight) {
throw new Error(
Error.PACKAGE.ALGORITHM,
ErrorCodes.IMAGE_TOO_SMALL,
image.toString(),
new Integer(this.nWidth).toString(),
new Integer(this.nHeight).toString());