|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectGiciFile.SaveFile
public class SaveFile
This class receives a 3D array and saves in any JAI format or raw data.
| Constructor Summary | |
|---|---|
SaveFile()
|
|
| Method Summary | |
|---|---|
static int |
getFormat(java.lang.String imageFile)
Gets the extension, if any, of the image to be saved. |
static void |
SaveFileByExtension(float[][][] imageSamples,
java.lang.String imageFile,
int[] imageGeometry)
Saves image samples in the format given by the extension. |
static void |
SaveFileFormat(float[][][] imageSamples,
java.lang.String imageFile,
int format)
Saves image samples using specified format using JAI. |
static void |
SaveFileRaw(float[][][] imageSamples,
java.lang.String imageFile,
int sampleType,
int byteOrder)
Saves image samples in raw data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SaveFile()
| Method Detail |
|---|
public static void SaveFileFormat(float[][][] imageSamples,
java.lang.String imageFile,
int format)
throws WarningException
imageSamples - a 3D float array that contains image samplesimageFile - file name where raw data will be storedformat - format type to save image. The value indicates the following:WarningException - when the file cannot be saved (incorrect number of components, file format unrecognized, etc.)
public static void SaveFileRaw(float[][][] imageSamples,
java.lang.String imageFile,
int sampleType,
int byteOrder)
throws WarningException
imageSamples - a 3D float array that contains image samplesimageFile - file name where raw data will be storedsampleType - an integer representing the class of image samples type. Samples types can be:
byteOrder - 0 if BIG_ENDIAN, 1 if LITTLE_ENDIAN
WarningException - when the file cannot be saved (incorrect number of components, file format unrecognized, etc.)
public static void SaveFileByExtension(float[][][] imageSamples,
java.lang.String imageFile,
int[] imageGeometry)
throws WarningException,
ParameterException
imageSamples - a 3D float array that contains image samplesimageFile - file name where raw data will be storedimageGeometry - a 1D integer array that contains the format when the data is stored in raw data
WarningException - when the file cannot be saved (incorrect number of components, file format unrecognized, etc.)
ParamterException - when saving with raw mode and the imageGeometry parameter has some problems
ParameterException
public static int getFormat(java.lang.String imageFile)
throws WarningException
imageFile - contains the name of the image to be saved
WarningException - when the file has no extension
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||