Class BMP
Object
org.anchoranalysis.bean.AnchorBean<HeaderFormat>
org.anchoranalysis.plugin.io.bean.metadata.header.HeaderFormat
org.anchoranalysis.plugin.io.bean.metadata.header.BMP
public class BMP extends HeaderFormat
The headers found in a BMP file.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description BMP() -
Method Summary
Modifier and Type Method Description protected org.anchoranalysis.core.format.ImageFileFormatformat()The associatedImageFileFormatwith this header.protected Optional<org.anchoranalysis.image.core.stack.ImageMetadata>populateFromMetadata(com.drew.metadata.Metadata metadata, org.anchoranalysis.image.core.stack.ImageFileAttributes attributes)Creates aImageMetadata, if possible, frommetadata.Methods inherited from class org.anchoranalysis.plugin.io.bean.metadata.header.HeaderFormat
populateFrom
-
Constructor Details
-
BMP
public BMP()
-
-
Method Details
-
format
protected org.anchoranalysis.core.format.ImageFileFormat format()Description copied from class:HeaderFormatThe associatedImageFileFormatwith this header.Only files whose paths end with an extension for this format will be accepted.
- Specified by:
formatin classHeaderFormat- Returns:
- the format.
-
populateFromMetadata
protected Optional<org.anchoranalysis.image.core.stack.ImageMetadata> populateFromMetadata(com.drew.metadata.Metadata metadata, org.anchoranalysis.image.core.stack.ImageFileAttributes attributes) throws org.anchoranalysis.image.io.ImageIOExceptionDescription copied from class:HeaderFormatCreates aImageMetadata, if possible, frommetadata.- Specified by:
populateFromMetadatain classHeaderFormat- Parameters:
metadata- theMetadatato inferImageMetadatafrom.attributes- timestamps and other file-attributes associated with the metadata.- Returns:
- the inferred metadata, if it was possible to infer it.
- Throws:
org.anchoranalysis.image.io.ImageIOException- if the metadata does not meet expectations.
-