|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PixelDataReader
Method Summary | |
---|---|
int[] |
getPixel(int i,
int j,
int k)
|
int[][][] |
getPixelDataArray()
|
int[][] |
getPixelDataArray(int frame)
|
PixelDataDescription |
getPixelDataDescription()
Retrieves the PixelDataDescription . |
int |
getSample(int i,
int j,
int k,
int band)
|
void |
mark()
Marks the read position of the backing ImageInputStream |
int[] |
readFully(int len)
|
void |
readFully(int[] samples,
int offset,
int len)
|
void |
readPixelData()
|
void |
readPixelData(boolean grabOverlayData)
|
int |
readSample()
If a sample can't be read, the state of the contained ImageInputStream is
not disturbed (beyond any effect of trying to read and getting an IOException) |
void |
reset()
Resets the read position of the backing ImageInputStream to
the matching mark (where mark() was last called on the stream). |
void |
resetStream()
Reset the read position of the backing ImageInputStream and
state of this instance to the initial read position |
void |
skipSamples(int n)
Skip the specified number of samples from the current position in the stream. |
void |
skipSamples(long n)
Skip the specified number of samples from the current position in the stream. |
void |
skipToNextFrame()
|
Method Detail |
---|
PixelDataDescription getPixelDataDescription()
PixelDataDescription
.
void mark()
ImageInputStream
void reset() throws java.io.IOException
ImageInputStream
to
the matching mark (where mark() was last called on the stream). If no
mark was set using @see org.dcm4che.image.PixelData#mark(), nothing
happens.
java.io.IOException
- If the matching mark is in a portion of the backing
ImageInputStream
that has already been discarded.void resetStream() throws java.io.IOException
ImageInputStream
and
state of this instance to the initial read position
java.io.IOException
- On I/O error -- a seek to beginning of stream was not
was not possibleint readSample() throws java.io.IOException
ImageInputStream
is
not disturbed (beyond any effect of trying to read and getting an IOException)
ImageInputStream
java.io.IOException
- If underlying ImageInputStream
has an I/O problemvoid skipSamples(int n) throws java.io.IOException
n
- Number of samples to skip. The behaviour of this method is undefined
for negative values of n
or if an IOException occurs.
java.io.IOException
- On I/O errorvoid skipSamples(long n) throws java.io.IOException
n
- Number of samples to skip. The behavior of this class is undefined
for negative values of n
or if an IOException occurs.
java.io.IOException
- On I/O errorvoid skipToNextFrame() throws java.io.IOException
java.io.IOException
void readFully(int[] samples, int offset, int len) throws java.io.IOException
java.io.IOException
int[] readFully(int len) throws java.io.IOException
java.io.IOException
int[] getPixel(int i, int j, int k) throws java.io.IOException
java.io.IOException
int getSample(int i, int j, int k, int band) throws java.io.IOException
java.io.IOException
int[][][] getPixelDataArray()
int[][] getPixelDataArray(int frame)
void readPixelData() throws java.io.IOException
java.io.IOException
void readPixelData(boolean grabOverlayData) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |