public class ImageUtil extends Object
| 构造器和说明 |
|---|
ImageUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
averageX(long[][] intImg,
int width,
int height,
int i,
int j,
int dl,
int dr)
Compute the average x coordinate of nonzero pixels
|
static int |
averageY(long[][] intImg,
int width,
int height,
int i,
int j,
int dl,
int dr)
Compute the average y coordinate of nonzero pixels
|
static long[][] |
getIntegralImage(byte[] pixels,
int width,
int height)
Create a integral image
|
static long[][] |
getSquaredIntegralImage(byte[] pixels,
int width,
int height)
Create a squared integral image
|
static long |
windowValue(long[][] intImg,
int width,
int height,
int i,
int j,
int dl,
int dr)
Compute the sum of pixels in a window
|
public static final long[][] getIntegralImage(byte[] pixels,
int width,
int height)
pixels - the input grayscale picturewidth - the width of the pictureheight - the height of the picturepublic static final long[][] getSquaredIntegralImage(byte[] pixels,
int width,
int height)
pixels - the input grayscale picturewidth - the width of the pictureheight - the height of the picturepublic static final long windowValue(long[][] intImg,
int width,
int height,
int i,
int j,
int dl,
int dr)
intImg - the integral imagewidth - the width of the pictureheight - the height of the picturei - the x coordinatej - the y coordinatedl - left offsetdr - right offsetpublic static final int averageX(long[][] intImg,
int width,
int height,
int i,
int j,
int dl,
int dr)
intImg - the integral imagewidth - the width of the pictureheight - the height of the picturei - the x coordinatej - the y coordinatedl - left offsetdr - right offsetpublic static final int averageY(long[][] intImg,
int width,
int height,
int i,
int j,
int dl,
int dr)
intImg - the integral imagewidth - the width of the pictureheight - the height of the picturei - the x coordinatej - the y coordinatedl - left offsetdr - right offsetCopyright © 2019. All rights reserved.