|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.desy.acop.video.timageio.TImageMetadata
public class TImageMetadata
Represents metadata (non-image data) associated with TINE images.
Field Summary | |
---|---|
java.lang.Integer |
aoiHeight
|
java.lang.Integer |
aoiWidth
|
java.lang.Integer |
appendedFrameSize
|
java.lang.Integer |
bytesPerPixel
|
java.lang.Long |
cameraPortId
|
java.lang.String |
cameraPortName
|
java.lang.String |
comment
optional |
java.lang.Integer |
effectiveBitsPerPixel
|
java.lang.Long |
eventNumber
|
java.lang.Long |
frameNumber
|
float |
fspare1
|
float |
fspare2
|
float |
fspare3
|
java.lang.Integer |
horizontalBinning
|
java.lang.Integer |
imageFlags
|
ImageFormat |
imageFormat
|
java.lang.Float |
imageRotation
|
int |
ispare1
|
int |
ispare2
|
int |
ispare3
|
static java.lang.String |
KEY_AOI_HEIGHT
|
static java.lang.String |
KEY_AOI_WIDTH
|
static java.lang.String |
KEY_APPENDED_FRAME_SIZE
|
static java.lang.String |
KEY_BYTES_PER_PIXEL
|
static java.lang.String |
KEY_CAMERA_PORT_ID
|
static java.lang.String |
KEY_CAMERA_PORT_NAME
|
static java.lang.String |
KEY_COMMENT
|
static java.lang.String |
KEY_EFFECTIVE_BITS_PER_PIXEL
|
static java.lang.String |
KEY_EVENT_NUMBER
|
static java.lang.String |
KEY_FRAME_NUMBER
|
static java.lang.String |
KEY_FSPARE1
|
static java.lang.String |
KEY_FSPARE2
|
static java.lang.String |
KEY_FSPARE3
|
static java.lang.String |
KEY_HORIZONTAL_BINNING
|
static java.lang.String |
KEY_IMAGE_FLAGS
|
static java.lang.String |
KEY_IMAGE_FORMAT
|
static java.lang.String |
KEY_IMAGE_ROTATION
|
static java.lang.String |
KEY_ISPARE1
|
static java.lang.String |
KEY_ISPARE2
|
static java.lang.String |
KEY_ISPARE3
|
static java.lang.String |
KEY_MD5HASH
|
static java.lang.String |
KEY_OPT_TEXT
|
static java.lang.String |
KEY_SOFTWARE
|
static java.lang.String |
KEY_SOURCE_FORMAT
|
static java.lang.String |
KEY_SOURCE_HEIGHT
|
static java.lang.String |
KEY_SOURCE_WIDTH
|
static java.lang.String |
KEY_TIMESTAMP_MICROSECONDS
|
static java.lang.String |
KEY_TIMESTAMP_SECONDS
|
static java.lang.String |
KEY_VERSION_TAG
|
static java.lang.String |
KEY_VERTICAL_BINNING
|
static java.lang.String |
KEY_VTOB
|
static java.lang.String |
KEY_XSCALE
|
static java.lang.String |
KEY_XSTART
|
static java.lang.String |
KEY_YSCALE
|
static java.lang.String |
KEY_YSTART
|
java.lang.String |
md5hash
The md5 hash of image bits. |
java.util.Map<java.lang.String,java.lang.String> |
optVars
Optional user text tags. |
java.lang.String |
software
optional |
ImageFormat |
sourceFormat
|
java.lang.Integer |
sourceHeight
|
java.lang.Integer |
sourceWidth
|
java.lang.Integer |
timestampMicroseconds
|
java.lang.Integer |
timestampSeconds
|
java.lang.Long |
versionTag
|
java.lang.Integer |
verticalBinning
|
java.lang.Float |
xScale
|
java.lang.Integer |
xStart
|
java.lang.Float |
yScale
|
java.lang.Integer |
yStart
|
Constructor Summary | |
---|---|
TImageMetadata(java.awt.image.BufferedImage bi)
Constructs TImageMetadata from BufferedImage with TINE image metadata in hashtable |
|
TImageMetadata(java.awt.image.BufferedImage bi,
boolean rejectNonArchival)
|
|
TImageMetadata(javax.imageio.metadata.IIOMetadata iioMetadata)
Creates image Metadata from known Image I/O Metadata. |
|
TImageMetadata(de.desy.tine.types.IMAGE timage)
Creates image Metadata from TINE image. |
|
TImageMetadata(com.sun.imageio.plugins.png.PNGMetadata pngMetadata)
Creates image Metadata from PNG Metadata. |
Method Summary | |
---|---|
boolean |
isArchival()
Return true if image metadata is archival (valid), otherwise
false |
static java.lang.String |
md5hash(byte[] data)
|
com.sun.imageio.plugins.png.PNGMetadata |
toPngMetadata()
Converts metadata to a PNG Metadata |
java.lang.String |
toString()
|
void |
write(de.desy.tine.types.IMAGE ti)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KEY_SOFTWARE
public static final java.lang.String KEY_COMMENT
public static final java.lang.String KEY_CAMERA_PORT_ID
public static final java.lang.String KEY_VERSION_TAG
public static final java.lang.String KEY_TIMESTAMP_SECONDS
public static final java.lang.String KEY_TIMESTAMP_MICROSECONDS
public static final java.lang.String KEY_CAMERA_PORT_NAME
public static final java.lang.String KEY_SOURCE_WIDTH
public static final java.lang.String KEY_SOURCE_HEIGHT
public static final java.lang.String KEY_AOI_WIDTH
public static final java.lang.String KEY_AOI_HEIGHT
public static final java.lang.String KEY_XSTART
public static final java.lang.String KEY_YSTART
public static final java.lang.String KEY_BYTES_PER_PIXEL
public static final java.lang.String KEY_EFFECTIVE_BITS_PER_PIXEL
public static final java.lang.String KEY_HORIZONTAL_BINNING
public static final java.lang.String KEY_VERTICAL_BINNING
public static final java.lang.String KEY_SOURCE_FORMAT
public static final java.lang.String KEY_IMAGE_FORMAT
public static final java.lang.String KEY_FRAME_NUMBER
public static final java.lang.String KEY_EVENT_NUMBER
public static final java.lang.String KEY_XSCALE
public static final java.lang.String KEY_YSCALE
public static final java.lang.String KEY_IMAGE_ROTATION
public static final java.lang.String KEY_IMAGE_FLAGS
public static final java.lang.String KEY_APPENDED_FRAME_SIZE
public static final java.lang.String KEY_MD5HASH
public static final java.lang.String KEY_ISPARE1
public static final java.lang.String KEY_ISPARE2
public static final java.lang.String KEY_ISPARE3
public static final java.lang.String KEY_FSPARE1
public static final java.lang.String KEY_FSPARE2
public static final java.lang.String KEY_FSPARE3
public static final java.lang.String KEY_OPT_TEXT
public static final java.lang.String KEY_VTOB
public java.lang.String software
public java.lang.String comment
public java.lang.Long cameraPortId
de.desy.tine.types.TBufferedImage.SourceHeader#cameraPortId
public java.lang.Long versionTag
de.desy.tine.types.TBufferedImage.SourceHeader#versionTag
public java.lang.Integer timestampSeconds
de.desy.tine.types.TBufferedImage.SourceHeader#timestampSeconds
public java.lang.Integer timestampMicroseconds
de.desy.tine.types.TBufferedImage.SourceHeader#timestampMicroseconds
public java.lang.String cameraPortName
de.desy.tine.types.TBufferedImage.SourceHeader#cameraPortName
public java.lang.Integer sourceWidth
de.desy.tine.types.TBufferedImage.FrameHeader#sourceWidth
public java.lang.Integer sourceHeight
de.desy.tine.types.TBufferedImage.FrameHeader#sourceHeight
public java.lang.Integer aoiWidth
de.desy.tine.types.TBufferedImage.FrameHeader#aoiWidth
public java.lang.Integer aoiHeight
de.desy.tine.types.TBufferedImage.FrameHeader#aoiHeight
public java.lang.Integer xStart
de.desy.tine.types.TBufferedImage.FrameHeader#xStart
public java.lang.Integer yStart
de.desy.tine.types.TBufferedImage.FrameHeader#yStart
public java.lang.Integer bytesPerPixel
de.desy.tine.types.TBufferedImage.FrameHeader#bytesPerPixel
public java.lang.Integer effectiveBitsPerPixel
de.desy.tine.types.TBufferedImage.FrameHeader#effectiveBitsPerPixel
public java.lang.Integer horizontalBinning
de.desy.tine.types.TBufferedImage.FrameHeader#horizontalBinning
public java.lang.Integer verticalBinning
de.desy.tine.types.TBufferedImage.FrameHeader#verticalBinning
public ImageFormat sourceFormat
de.desy.tine.types.TBufferedImage.FrameHeader#sourceFormat
public ImageFormat imageFormat
de.desy.tine.types.TBufferedImage.FrameHeader#imageFormat
public java.lang.Long frameNumber
de.desy.tine.types.TBufferedImage.FrameHeader#frameNumber
public java.lang.Long eventNumber
de.desy.tine.types.TBufferedImage.FrameHeader#eventNumber
public java.lang.Float xScale
de.desy.tine.types.TBufferedImage.FrameHeader#xScale
public java.lang.Float yScale
de.desy.tine.types.TBufferedImage.FrameHeader#yScale
public java.lang.Float imageRotation
de.desy.tine.types.TBufferedImage.FrameHeader#imageRotation
public java.lang.Integer imageFlags
de.desy.tine.types.TBufferedImage.FrameHeader#imageFlags
public java.lang.Integer appendedFrameSize
de.desy.tine.types.TBufferedImage.FrameHeader#appendedFrameSize
public java.lang.String md5hash
An md5 checksum (32 chars of text) is calculated out of the first 'appendedFrameSize' bytes found in TImage's appended frame buffer.
public java.util.Map<java.lang.String,java.lang.String> optVars
The text tags are passed by the user as key value pairs, where each key
and value must consist of only Latin1 characters (see PNG reference
documentation on this subject).
The key must be smaller or equal to 64 characters in length.
Each key string is prefixed with "VSv3.opt.text." and then encoded to PNG
tEXt chunk.
public int ispare1
public int ispare2
public int ispare3
public float fspare1
public float fspare2
public float fspare3
Constructor Detail |
---|
public TImageMetadata(java.awt.image.BufferedImage bi)
bi
- - Java BufferedImage with TINE image metadata in hashtablepublic TImageMetadata(java.awt.image.BufferedImage bi, boolean rejectNonArchival)
bi
- - BufferedImagerejectNonArchival
- - if true
and bi
contains invalid
metadata throws IllegalArgumentException
public TImageMetadata(javax.imageio.metadata.IIOMetadata iioMetadata)
iioMetadata
- Image I/O Metadata
java.lang.NullPointerException
- If iioMetadata
is null
.
java.lang.NullPointerException
- If iioMetadata
is unsupported.public TImageMetadata(com.sun.imageio.plugins.png.PNGMetadata pngMetadata)
pngMetadata
- PNG Metadatapublic TImageMetadata(de.desy.tine.types.IMAGE timage)
timage
- TINE ImageMethod Detail |
---|
public void write(de.desy.tine.types.IMAGE ti)
public com.sun.imageio.plugins.png.PNGMetadata toPngMetadata()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String md5hash(byte[] data)
public boolean isArchival()
true
if image metadata is archival (valid), otherwise
false
true
if image metadata is archival (valid),
otherwise false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |