public class ImageUtil
extends java.lang.Object
构造器和说明 |
---|
ImageUtil() |
限定符和类型 | 方法和说明 |
---|---|
static int[] |
bin2Rgb(byte[] bw,
int iw,
int ih)
将2值图像字节转为像素
|
static java.awt.image.BufferedImage |
change2Image(java.awt.image.BufferedImage image)
变化光度 保持统一.
|
static java.awt.image.BufferedImage |
convolImage(java.awt.Image image)
过滤 边缘检测 图片
|
static int[] |
image2Pixs(java.awt.Image image,
int iw,
int ih)
图片转为像素数组
|
static java.awt.image.BufferedImage |
scaleImage(java.awt.image.BufferedImage src,
int width,
int height)
Creates a scaled copy of the source image.
|
static byte[] |
Thinner2(byte[] bm,
int iw,
int ih)
连接细化算法
|
static byte[] |
toBinary(int[] pix,
int iw,
int ih)
将ARGB图像序列pixels变为2值图像序列im
|
public static int[] image2Pixs(java.awt.Image image, int iw, int ih)
public static java.awt.image.BufferedImage convolImage(java.awt.Image image)
public static java.awt.image.BufferedImage change2Image(java.awt.image.BufferedImage image)
public static byte[] toBinary(int[] pix, int iw, int ih)
public static int[] bin2Rgb(byte[] bw, int iw, int ih)
public static byte[] Thinner2(byte[] bm, int iw, int ih)
public static java.awt.image.BufferedImage scaleImage(java.awt.image.BufferedImage src, int width, int height)
src
- source image to be scaledwidth
- the width for the new scaled image in pixelsheight
- the height for the new scaled image in pixels