|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGiciFile.LoadFile
public class LoadFile
This class receives an image file and loads it.
The image file can be a standard format or raw data. Size and data type must be specified if we use raw data loading.
Usage example:
construct
getImage
getTypes
getRGBComponents
Field Summary | |
---|---|
(package private) float[][][] |
imageSamples
Image samples (index meaning [z][y][x]). |
(package private) boolean |
RGBComponents
Indicate if the 3 first components are RGB. |
(package private) java.lang.Class[] |
samplesType
Type of the sample (byte, float, etc) for each component. |
(package private) int |
xSize
Image width. |
(package private) int |
ySize
Image height. |
(package private) int |
zSize
Number of image components. |
Constructor Summary | |
---|---|
LoadFile(java.lang.String imageFile)
Loads an image (JAI loading). |
|
LoadFile(java.lang.String imageFile,
int zSize,
int ySize,
int xSize,
int sampleType,
int byteOrder,
boolean RGBComponents)
Interface to call raw data image load. |
Method Summary | |
---|---|
static java.lang.Class |
getClass(int dataType)
Assign a class to a number data type. |
float[][][] |
getImage()
Returns the samples of the image. |
(package private) int[] |
getIntegerArray(java.lang.String line)
Receives a String that contains a sequence of integer numbers and returns an array with the integers in the String |
int[] |
getPixelBitDepth()
Indicates the bit depth of the loaded image. |
boolean |
getRGBComponents()
Returns if the 3 first components are RGB. |
int[] |
getSignedPixels()
Indicates if the loaded image has signed pixels. |
static int |
getType(java.lang.String type)
Assign a number to a data type. |
java.lang.Class[] |
getTypes()
Returns the type of the image components. |
void |
LoadFile(java.lang.String imageFile,
int zSize,
int ySize,
int xSize,
java.lang.Class sampleType,
int byteOrder,
boolean RGBComponents)
Interface to call raw data image load. |
void |
LoadPGM(java.lang.String imageFile)
Loads a pgm image. |
void |
rawLoad(java.lang.String imageFile,
int zSize,
int ySize,
int xSize,
java.lang.Class sampleType,
int byteOrder,
boolean RGBComponents)
Loads a raw data image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
float[][][] imageSamples
All values allowed.
int zSize
Negative values are not allowed for this field.
int ySize
Negative values are not allowed for this field.
int xSize
Negative values are not allowed for this field.
java.lang.Class[] samplesType
Only class types allowed.
boolean RGBComponents
All values allowed.
Constructor Detail |
---|
public LoadFile(java.lang.String imageFile) throws WarningException
imageFile
- an string that contains the name of the image file
WarningException
- when the file cannot be loadpublic LoadFile(java.lang.String imageFile, int zSize, int ySize, int xSize, int sampleType, int byteOrder, boolean RGBComponents) throws WarningException
imageFile
- an string that contains the name of the image filezSize
- image depthySize
- image heightxSize
- image widthsampleType
- an integer representing the class of image samples typebyteOrder
- 0 if BIG_ENDIAN, 1 if LITTLE_ENDIANRGBComponents
- a boolean that indicates if the three first components are RGB (true, otherwise false)
WarningException
- when the file cannot be loadMethod Detail |
---|
public void LoadPGM(java.lang.String imageFile) throws WarningException
imageFile
- an string that contains the name of the image file
WarningException
- when the file cannot be loadint[] getIntegerArray(java.lang.String line)
line
- String containing integers separated by blank spaces
public void LoadFile(java.lang.String imageFile, int zSize, int ySize, int xSize, java.lang.Class sampleType, int byteOrder, boolean RGBComponents) throws WarningException
imageFile
- an string that contains the name of the image filezSize
- an integer of image depthySize
- an integer of image heightxSize
- an integer of image widthsampleType
- a Class of image samples typebyteOrder
- 0 if BIG_ENDIAN, 1 if LITTLE_ENDIANRGBComponents
- a boolean that indicates if the three first components are RGB (true, otherwise false)
WarningException
- when the file cannot be loadpublic void rawLoad(java.lang.String imageFile, int zSize, int ySize, int xSize, java.lang.Class sampleType, int byteOrder, boolean RGBComponents) throws WarningException
imageFile
- an string that contains the name of the image filezSize
- an integer of image depthySize
- an integer of image heightxSize
- an integer of image widthsampleType
- a Class of image samples typebyteOrder
- 0 if BIG_ENDIAN, 1 if LITTLE_ENDIANRGBComponents
- a boolean that indicates if the three first components are RGB (true, otherwise false)
WarningException
- when the file cannot be loadpublic float[][][] getImage()
public java.lang.Class[] getTypes()
public boolean getRGBComponents()
public int[] getPixelBitDepth()
public int[] getSignedPixels()
public static int getType(java.lang.String type)
type
- an string that represents the data type (byte, boolean, etc.)
public static java.lang.Class getClass(int dataType)
dataType
- a number representing data type according to function getType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |