/* Then do edge detection. The cWidth of the Canny operator is set
* based on the cropped cWidth, which is supposed to be the
* barcode cWidth.
*/
int cCannyWidth = cWidth / 6;
Gray8CannyHoriz canny = new Gray8CannyHoriz(cCannyWidth);
/* Now apply the edge detection to the cropped mage
*/
canny.push(imageCropped.clone());
/* And obtain the result
*/
imageResult = canny.getFront();
if (!(imageResult instanceof Gray8Image)) {
throw new jjil.core.Error(
jjil.core.Error.PACKAGE.ALGORITHM,
jjil.algorithm.ErrorCodes.IMAGE_NOT_GRAY8IMAGE,
imageResult.toString(),