public enum FileType extends Enum<FileType>
| Enum Constant and Description |
|---|
ASIFTENRICHED
OpenIMAJ ASIFTENRICHED format
|
ASIFTENRICHED_ASCII
OpenIMAJ ASIFTENRICHED ascii format
|
ASIFTENRICHED_BINARY
OpenIMAJ ASIFTENRICHED binary format
|
BINARY_KEYPOINT
OpenIMAJ binary list of keypoints format
|
ELLIPSE_ASCII
Ellipse format used by Oxford tools
|
KOEN1_ASCII
KOEN1 ascii format used by Koen van der Sande's colour sift tools.
|
LOWE_KEYPOINT
Auto-guess between Lowe's ASCII keypoints format or the OpenIMAJ binary
format.
|
LOWE_KEYPOINT_ASCII
Format defined by Lowe's "keypoints" binary
|
| Modifier and Type | Method and Description |
|---|---|
abstract FeatureFile |
read(File file)
Read a file
|
abstract FeatureFile |
read(InputStream source)
Read a file
|
byte[][] |
readFeatures(File file)
Read all the features from the file.
|
byte[][] |
readFeatures(File file,
int... index)
Read features at given indices from the file.
|
byte[][] |
readFeatures(InputStream stream)
Read all the features from the file.
|
byte[][] |
readFeatures(InputStream stream,
int... index)
Read features at given indices from an input stream.
|
Header |
readHeader(File file)
Read the header (num features and dimensionality of features) from given
file.
|
Header |
readHeader(InputStream stream)
Read the header (num features and dimensionality of features) from given
file.
|
static FileType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileType LOWE_KEYPOINT
public static final FileType BINARY_KEYPOINT
public static final FileType LOWE_KEYPOINT_ASCII
public static final FileType ELLIPSE_ASCII
public static final FileType KOEN1_ASCII
public static final FileType ASIFTENRICHED
public static final FileType ASIFTENRICHED_BINARY
public static final FileType ASIFTENRICHED_ASCII
public static FileType[] values()
for (FileType c : FileType.values()) System.out.println(c);
public static FileType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Header readHeader(File file) throws IOException
file - IOExceptionpublic Header readHeader(InputStream stream) throws IOException
stream - IOExceptionpublic byte[][] readFeatures(File file, int... index) throws IOException
file - index - IOExceptionpublic byte[][] readFeatures(InputStream stream, int... index) throws IOException
stream - index - IOExceptionpublic byte[][] readFeatures(File file) throws IOException
file - IOExceptionpublic byte[][] readFeatures(InputStream stream) throws IOException
stream - IOExceptionpublic abstract FeatureFile read(File file) throws IOException
file - IOExceptionpublic abstract FeatureFile read(InputStream source) throws IOException
source - IOException