|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Viewer.Util.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 void |
SaveFileExtension(float[][][] imageSamples,
int[] QComponentsBits,
java.lang.String imageFile,
int[] imageGeometry)
This functions saves the image samples to an image file with the format specified by its extension. |
private static void |
SaveFileFormat(float[][][] imageSamples,
java.lang.String imageFile,
int format)
Saves image samples using specified format using JAI. |
private 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 SaveFileExtension(float[][][] imageSamples,
int[] QComponentsBits,
java.lang.String imageFile,
int[] imageGeometry)
throws WarningException
imageSamples - the image samplesQComponentsBits - the bit depth of each image componentimageFile - the name fileimageGeometry - image geometry needed in the case that the output file is raw or img
WarningException - when the file can not be saved
private 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.)
private 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.)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||