public class ResolutionBox extends Box
Modifier and Type | Field and Description |
---|---|
private short |
denomH |
private short |
denomV |
private byte |
expH |
private byte |
expV |
private float |
hRes
The cached horizontal/vertical resolutions.
|
private short |
numH |
private short |
numV
The data elements in this box.
|
private float |
vRes |
data, extraLength, length, type
Constructor and Description |
---|
ResolutionBox(int type,
byte[] data)
Constructs a
ResolutionBox from the provided type and
content data array. |
ResolutionBox(int type,
float hRes,
float vRes)
Constructs a
ResolutionBox from the provided type and
horizontal/vertical resolutions. |
ResolutionBox(Node node)
Constructs a
ResolutionBox based on the provided
org.w3c.dom.Node . |
Modifier and Type | Method and Description |
---|---|
protected void |
compose()
Composes the content byte array from the data elements.
|
float |
getHorizontalResolution()
Return the horizontal resolution.
|
IIOMetadataNode |
getNativeNode()
Creates an
IIOMetadataNode from this resolution
box. |
float |
getVerticalResolution()
Return the vertical resolution.
|
protected void |
parse(byte[] data)
Parse the data elements from the provided content data array.
|
copyInt, createBox, getAttribute, getBoxClass, getByteArrayElementValue, getByteElementValue, getContent, getExtraLength, getIntArrayElementValue, getIntElementValue, getLength, getName, getNativeNodeForSimpleBox, getShortElementValue, getStringElementValue, getType, getTypeByName, getTypeInt, getTypeString, parseByteArray, parseIntArray, read, setContent, setDefaultAttributes, setExtraLength, setLength, write
private short numV
private short numH
private short denomV
private short denomH
private byte expV
private byte expH
private float hRes
private float vRes
public ResolutionBox(int type, byte[] data)
ResolutionBox
from the provided type and
content data array.public ResolutionBox(int type, float hRes, float vRes)
ResolutionBox
from the provided type and
horizontal/vertical resolutions.public ResolutionBox(Node node) throws IIOInvalidTreeException
ResolutionBox
based on the provided
org.w3c.dom.Node
.IIOInvalidTreeException
public float getHorizontalResolution()
public float getVerticalResolution()
protected void parse(byte[] data)
public IIOMetadataNode getNativeNode()
IIOMetadataNode
from this resolution
box. The format of this node is defined in the XML dtd and xsd
for the JP2 image file.getNativeNode
in class Box
Copyright © 2017 Open Microscopy Environment