public class ImageUtils extends Object
| Constructor and Description |
|---|
ImageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
translateCoordsScaleImage(double x,
double y,
double origImageW,
double origImageH,
double newImageW,
double newImageH)
Calculate coordinates in an image, assuming the image has been scaled from (oH x oW) pixels to (nH x nW) pixels
|
public static double[] translateCoordsScaleImage(double x,
double y,
double origImageW,
double origImageH,
double newImageW,
double newImageH)
x - X position (pixels) to translatey - Y position (pixels) to translateorigImageW - Original image width (pixels)origImageH - Original image height (pixels)newImageW - New image width (pixels)newImageH - New image height (pixels)Copyright © 2018. All rights reserved.