org.jplot2d.data
Class ImageData
- java.lang.Object
-
- org.jplot2d.data.ImageData
-
- All Implemented Interfaces:
- GraphData
- Direct Known Subclasses:
- MultiBandImageData, SingleBandImageData
public abstract class ImageData extends java.lang.Object implements GraphData
Immutable. This class keep (x,y) image data and compute data feature such as max/min, NaN indexes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract ImageDataapplyCoordinateReference(ImageCoordinateReference cr)ImageCoordinateReferencegetCoordinateReference()intgetHeight()intgetWidth()doublegetXcdelt()Get the pixel size in the X directiondoublegetXcrpix()Get the coordinate reference pixel in the X axisdoublegetXcrval()Get the coordinate reference value of the X axisRangegetXRange()Returns x range which contains all valid data in x boundary.doublegetYcdelt()Get the pixel size in the Y directiondoublegetYcrpix()Get the coordinate reference pixel in the Y axisdoublegetYcrval()Get the coordinate reference value of the Y axisRangegetYRange()Returns y range which contains all valid data in y boundary.booleanhasPointOutsideXBounds()Returnstrueif there are valid data out of the x boundary.booleanhasPointOutsideYBounds()Returnstrueif there are valid data out of the y boundary.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jplot2d.data.GraphData
applyBoundary
-
-
-
-
Method Detail
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getXRange
public Range getXRange()
Description copied from interface:GraphDataReturns x range which contains all valid data in x boundary. If there is no valid data in x boundary, the empty property of returned Range will be set totrue
-
getYRange
public Range getYRange()
Description copied from interface:GraphDataReturns y range which contains all valid data in y boundary. If there is no valid data in y boundary, the empty property of returned Range will be set totrue
-
hasPointOutsideXBounds
public boolean hasPointOutsideXBounds()
Description copied from interface:GraphDataReturnstrueif there are valid data out of the x boundary.- Specified by:
hasPointOutsideXBoundsin interfaceGraphData- Returns:
- the flag
-
hasPointOutsideYBounds
public boolean hasPointOutsideYBounds()
Description copied from interface:GraphDataReturnstrueif there are valid data out of the y boundary.- Specified by:
hasPointOutsideYBoundsin interfaceGraphData- Returns:
- the flag
-
getCoordinateReference
public ImageCoordinateReference getCoordinateReference()
-
applyCoordinateReference
public abstract ImageData applyCoordinateReference(ImageCoordinateReference cr)
-
getXcrval
public double getXcrval()
Get the coordinate reference value of the X axis- Returns:
- the coordinate reference value of the X axis
-
getYcrval
public double getYcrval()
Get the coordinate reference value of the Y axis- Returns:
- the coordinate reference value of the Y axis
-
getXcrpix
public double getXcrpix()
Get the coordinate reference pixel in the X axis- Returns:
- the coordinate reference pixel in the X axis
-
getYcrpix
public double getYcrpix()
Get the coordinate reference pixel in the Y axis- Returns:
- the coordinate reference pixel in the Y axis
-
getXcdelt
public double getXcdelt()
Get the pixel size in the X direction- Returns:
- the pixel size in the X direction
-
getYcdelt
public double getYcdelt()
Get the pixel size in the Y direction- Returns:
- the pixel size in the Y direction
-
-
DMelt 3.0 © DataMelt by jWork.ORG