src/main/java/ch/wetwer/moviefleur/color/ColorFilter.java
/**
     * @param bufferedImg img to be converted to color scale CS_GRAY
     *
     * @return gray img with no colors
     */
@param bufferedImg img to be converted to color scale CS_GRAY
@return gray img with no colors
@param bufferedImg img to be converted to color scale CS_GRAY @return gray img with no colors
public static BufferedImage filterGrayscale(BufferedImage bufferedImg) {
        ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);
        ColorConvertOp op = new ColorConvertOp(cs, null);
        return op.filter(bufferedImg, null);
    }
public static BufferedImage filterGrayscale ( BufferedImage bufferedImg ) { ColorSpace cs = ColorSpace . getInstance ( ColorSpace . CS_GRAY ) ; ColorConvertOp op = new ColorConvertOp ( cs , null ) ; return op . filter ( bufferedImg , null ) ; }
@param bufferedImg img to be converted to color scale CS_GRAY
 @return gray img with no colors
@param bufferedImg img to be converted to color scale CS_GRAY @return gray img with no colors