Package adams.data.image
Class ImageMetaDataHelper
- java.lang.Object
-
- adams.data.image.ImageMetaDataHelper
-
public class ImageMetaDataHelper extends Object
Helper class for reading meta-data from images.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description static String
DATETIME_MASK
the date/time regexp mask.
-
Constructor Summary
Constructors Constructor Description ImageMetaDataHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpreadSheet
commons(File file)
Reads the meta-data from the file (Commons Imaging).protected static String
fixDateTime(String s)
Fixes date/time strings.static SpreadSheet
metaDataExtractor(File file)
Reads the meta-data from the file (using meta-data extractor).
-
-
-
Field Detail
-
DATETIME_MASK
public static final String DATETIME_MASK
the date/time regexp mask.- See Also:
- Constant Field Values
-
-
Method Detail
-
fixDateTime
protected static String fixDateTime(String s)
Fixes date/time strings. Replaces the ":" in the date with "-" to be ADAMS compatible.- Parameters:
s
- the string to inspect- Returns:
- the (potentially) fixed string
-
commons
public static SpreadSheet commons(File file) throws Exception
Reads the meta-data from the file (Commons Imaging).- Parameters:
file
- the file to read the meta-data from- Returns:
- the meta-data
- Throws:
Exception
- if failed to read meta-data
-
metaDataExtractor
public static SpreadSheet metaDataExtractor(File file) throws Exception
Reads the meta-data from the file (using meta-data extractor).- Parameters:
file
- the file to read the meta-data from- Returns:
- the meta-data
- Throws:
Exception
- if failed to read meta-data
-
-