public abstract class IImageFormat
extends java.lang.Object
Constructor and Description |
---|
IImageFormat() |
Modifier and Type | Method and Description |
---|---|
abstract void |
computeFitting()
Compute the fitting bounds (Monochrome only)
|
int |
getHeight()
Returns the height of the image depending on the format.
|
abstract int |
getHistogramWidth()
Returns the histogram width.
|
abstract java.lang.String |
getName()
Returns the format name.
|
abstract int |
getRGB(boolean negative,
int[] colormap16,
int x,
int y)
Returns the pixel at the specifed pos
|
abstract double |
getValue(int x,
int y)
Gets the pixel value as double (Used for table and profile display).
|
abstract java.lang.String |
getValueStr(int x,
int y)
Gets the pixel value as string (Used for pixel info display).
|
abstract int |
getWidth()
Returns the width of the image depending on the format.
|
void |
initDefault(JGradientViewer gradTool)
Init static variable.
|
abstract boolean |
isColorFormat()
Returns true if this format is a color format, false otherwise.
|
boolean |
isNull()
Returns true if the image has a null size, false otherwise
|
abstract void |
setData(byte[] rawData)
Sets and decode the data.
|
boolean |
setFitting(boolean bestFit,
double min,
double max)
Set manual fitting parameters
|
public abstract void setData(byte[] rawData) throws java.io.IOException
rawData
- Pointer to image datajava.io.IOException
public void initDefault(JGradientViewer gradTool)
gradTool
- Gradient viewerpublic boolean isNull()
public boolean setFitting(boolean bestFit, double min, double max)
bestFit
- Enable automatic fittingmin
- minumun fitting value (0..100%)max
- maximum fitting value (0..100%)public abstract int getWidth()
public int getHeight()
public abstract boolean isColorFormat()
public abstract java.lang.String getName()
public abstract double getValue(int x, int y)
x
- horizontal coordinatey
- vertical coordinatepublic abstract java.lang.String getValueStr(int x, int y)
x
- horizontal coordinatey
- vertical coordinatepublic abstract int getHistogramWidth()
public abstract void computeFitting()
public abstract int getRGB(boolean negative, int[] colormap16, int x, int y)
x
- horizontal coordinatey
- vertical coordinatenegative
- Negative flagcolormap16
- 16Bit colormap (Monochrome only)