public class DicomPixelData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
byte[] |
b |
java.lang.Object |
data |
float[] |
f |
short[] |
s |
Constructor and Description |
---|
DicomPixelData(DicomElement.VR vr,
int size)
Initializes buffer with a value representation and size
|
DicomPixelData(DicomElement.VR vr,
java.lang.Object data)
Assigns data to a new pixel buffer
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getByteData() |
java.lang.Object |
getData() |
float[] |
getFloatData() |
short[] |
getShortData() |
DicomElement.VR |
getType() |
public final byte[] b
public final short[] s
public final float[] f
public final java.lang.Object data
public DicomPixelData(DicomElement.VR vr, int size)
vr
- value representation (OB=byte, OW=short, OF=float)size
- number of elementspublic DicomPixelData(DicomElement.VR vr, java.lang.Object data)
vr
- value representation (OB=byte, OW=short, OF=float)data
- array of data, must be consistent with value representationpublic DicomElement.VR getType()
public java.lang.Object getData()
public byte[] getByteData()
public short[] getShortData()
public float[] getFloatData()