Package cn.net.pap.common.boofcv
Class BoofcvUtil
java.lang.Object
cn.net.pap.common.boofcv.BoofcvUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImage
adjustBrightness
(BufferedImage input, float brightness) 亮度static BufferedImage
adjustContrast
(BufferedImage input, float contrast) 对比度static BufferedImage
裁剪
-
Constructor Details
-
BoofcvUtil
public BoofcvUtil()
-
-
Method Details
-
adjustBrightness
亮度- Parameters:
input
-brightness
- >0增加亮度, <0减少亮度- Returns:
-
adjustContrast
对比度- 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:
-