Class BoofcvUtil

java.lang.Object
cn.net.pap.common.boofcv.BoofcvUtil

public class BoofcvUtil extends Object
  • Constructor Details

    • BoofcvUtil

      public BoofcvUtil()
  • Method Details

    • adjustBrightness

      public static BufferedImage adjustBrightness(BufferedImage input, float brightness)
      亮度
      Parameters:
      input -
      brightness - >0增加亮度, <0减少亮度
      Returns:
    • adjustContrast

      public static BufferedImage adjustContrast(BufferedImage input, float contrast)
      对比度
      Parameters:
      input -
      contrast - ==1无变化, >1增加对比度,<1减少对比度
      Returns:
    • crop

      public static BufferedImage crop(BufferedImage input, Integer x, Integer y, Integer width, Integer height)
      裁剪
      Parameters:
      input -
      x -
      y -
      width -
      height -
      Returns: