Class CoordinateConverter
java.lang.Object
org.codice.alliance.imaging.chip.service.impl.CoordinateConverter
Converts lat/lon points to pixels and vice-versa.
-
Constructor Summary
ConstructorsConstructorDescriptionCoordinateConverter(int width, int height, List<org.la4j.Vector> boundary) CoordinateConverter(BufferedImage image, List<org.la4j.Vector> boundary) -
Method Summary
-
Constructor Details
-
CoordinateConverter
- Parameters:
image- the input image that the basis will be calcluated for.boundary- a List of vectors that represent the Lat/Lon of the image.
-
CoordinateConverter
-
-
Method Details
-
toPixels
- Parameters:
lonLats- the area within in the image to be converted to pixel.- Returns:
- a Vector containing the pixel-equivalent of the area described by lonLats.
-
toLonLat
- Parameters:
pixels- the area withing the image to be converted to lat/lon.- Returns:
- a Vector containing the latlon-equivalent of the area described by pixels.
-