Package tritechgemini.imagedata
Class FanImageData
java.lang.Object
tritechgemini.imagedata.FanImageData
- All Implemented Interfaces:
Cloneable
Data for a fan shaped image. Note that this is only the data, not any type of actual
image. It's in int16 (short)format, even though the maximum value should still be the
max value from the sonars, which is 255, this allows setting all pixels outside the sonar
image to be set to -1, which can then be made transparent when the data are finally converted
into a buffered image.
- Author:
- Doug Gillespie
-
Constructor Summary
ConstructorsConstructorDescriptionFanImageData(SonarImageRecordI geminiRecord, short[][] imageValues, double metresPerPixX, double metresPerPixY) -
Method Summary
Modifier and TypeMethodDescriptionclone()Deep hard clone of the image dataOriginal gemini record that created these data.short[][]doubleImage scaledoubleImage scale
-
Constructor Details
-
FanImageData
public FanImageData(SonarImageRecordI geminiRecord, short[][] imageValues, double metresPerPixX, double metresPerPixY)
-
-
Method Details
-
getImageValues
public short[][] getImageValues()- Returns:
- the image data 0:255 within the sonar image, -1 in the rest of the rectangle.
-
getMetresPerPixX
public double getMetresPerPixX()Image scale- Returns:
- image scale in X direction in m/pix.
-
getMetresPerPixY
public double getMetresPerPixY()Image scale- Returns:
- image scale in Y direction in m/pix.
-
getGeminiRecord
Original gemini record that created these data.- Returns:
- Gemini data record
-
clone
Deep hard clone of the image data
-