1、http://jhlabs.com/ip/index.html
public static byte[] blur(byte[] data) throws IOException {
ByteArrayInputStream bais = new ByteArrayInputStream(data);
BufferedImage img = ImageIO.read(bais);
GaussianFilter gaussianFilter = new GaussianFilter();
gaussianFilter.filter(img, img);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ImageIO.write(img, "jpg", baos);
return baos.toByteArray();
}
Maven地址:http://mvnrepository.com/artifact/com.jhlabs/filters
除了高斯模糊,这人还写了好多图片处理的filter,参见:http://jhlabs.com/ip/filters/index.html
2、