public class ImageUtils extends Object
| 构造器和说明 |
|---|
ImageUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static BufferedImage |
bgrToBufferedImage(byte[] data,
int width,
int height) |
static void |
drawImageRect(BufferedImage image,
int x,
int y,
int width,
int height)
画检测框
|
static void |
drawImageRect(ai.djl.modality.cv.Image image,
int x,
int y,
int width,
int height)
画检测框
|
static byte[] |
getMatrixBGR(BufferedImage image)
对图像解码返回BGR格式矩阵数据
|
static boolean |
isBGR3Byte(BufferedImage image)
推断图像是否为BGR格式
|
static boolean |
isImageValid(BufferedImage image)
检查图像是否有效
|
public static boolean isBGR3Byte(BufferedImage image)
public static byte[] getMatrixBGR(BufferedImage image)
image - public static BufferedImage bgrToBufferedImage(byte[] data, int width, int height)
public static boolean isImageValid(BufferedImage image)
image - public static void drawImageRect(BufferedImage image, int x, int y, int width, int height)
image - x - y - width - height - public static void drawImageRect(ai.djl.modality.cv.Image image,
int x,
int y,
int width,
int height)
image - x - y - width - height - Copyright © 2025. All rights reserved.