src/main/java/eu/digitisation/image/Bimage.java
public Bimage toGrayScale() {
        ColorSpace space = ColorSpace.getInstance(ColorSpace.CS_GRAY);
        ColorConvertOp operation = new ColorConvertOp(space, null);
        return new Bimage(operation.filter(this, null));
    }
/**
     * Transform image to gray-scale
     *
     * @return this image as gray-scale image
     */
Transform image to gray-scale
@return this image as gray-scale image
Transform image to gray - scale @return this image as gray - scale image
public Bimage toGrayScale() {
        ColorSpace space = ColorSpace.getInstance(ColorSpace.CS_GRAY);
        ColorConvertOp operation = new ColorConvertOp(space, null);
        return new Bimage(operation.filter(this, null));
    }
public Bimage toGrayScale ( ) { ColorSpace space = ColorSpace . getInstance ( ColorSpace . CS_GRAY ) ; ColorConvertOp operation = new ColorConvertOp ( space , null ) ; return new Bimage ( operation . filter ( this , null ) ) ; }
Transform image to gray-scale
 @return this image as gray-scale image
Transform image to gray - scale @return this image as gray - scale image