Package fr.esrf.tangoatk.widget.image
Class Mono16ImageFormat
java.lang.Object
fr.esrf.tangoatk.widget.image.IImageFormat
fr.esrf.tangoatk.widget.image.Mono16ImageFormat
Monochrome 16bits image format
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCompute the fitting bounds (Monochrome only)intgetName()intgetRGB(boolean negative, int[] colormap16, int x, int y) Returns the pixel at the specifed posdoublegetValue(int x, int y) Gets the pixel value as double (Used for table and profile display).getValueStr(int x, int y) Gets the pixel value as string (Used for pixel info display).intgetWidth()booleanvoidsetData(byte[] rawData) Sets and decode the data.Methods inherited from class fr.esrf.tangoatk.widget.image.IImageFormat
getHeight, initDefault, isNull, setFitting
-
Constructor Details
-
Mono16ImageFormat
public Mono16ImageFormat()
-
-
Method Details
-
setData
Description copied from class:IImageFormatSets and decode the data.- Specified by:
setDatain classIImageFormat- Parameters:
rawData- Pointer to image data- Throws:
IOException- In case of failure
-
getWidth
public int getWidth()- Specified by:
getWidthin classIImageFormat- Returns:
- the width of the image depending on the format.
-
getName
- Specified by:
getNamein classIImageFormat- Returns:
- the format name.
-
isColorFormat
public boolean isColorFormat()- Specified by:
isColorFormatin classIImageFormat- Returns:
- true if this format is a color format, false otherwise.
-
getHistogramWidth
public int getHistogramWidth()- Specified by:
getHistogramWidthin classIImageFormat- Returns:
- the histogram width. (The number of possible value for a pixel)
-
getValue
public double getValue(int x, int y) Description copied from class:IImageFormatGets the pixel value as double (Used for table and profile display).- Specified by:
getValuein classIImageFormat- Parameters:
x- horizontal coordinatey- vertical coordinate- Returns:
- Pixel value as double
-
getValueStr
Description copied from class:IImageFormatGets the pixel value as string (Used for pixel info display).- Specified by:
getValueStrin classIImageFormat- Parameters:
x- horizontal coordinatey- vertical coordinate- Returns:
- Pixel value as String
-
computeFitting
public void computeFitting()Description copied from class:IImageFormatCompute the fitting bounds (Monochrome only)- Specified by:
computeFittingin classIImageFormat
-
getRGB
public int getRGB(boolean negative, int[] colormap16, int x, int y) Description copied from class:IImageFormatReturns the pixel at the specifed pos- Specified by:
getRGBin classIImageFormat- Parameters:
negative- Negative flagcolormap16- 16Bit colormap (Monochrome only)x- horizontal coordinatey- vertical coordinate- Returns:
- the pixel at the specifed pos
-