|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.mri.PixelSignal
public class PixelSignal
Class PixelSignal encapsulates the measured spin signal on one pixel of a magnetic resonance image. This includes:
Each spin signal value is stored as a value of type short in the range −32768..+32767.
Operations are provided to read a pixel signal object from a DataInputStream and write a pixel signal object to a DataOutputStream. The format is:
Operations are provided to read a pixel signal object from an ObjectInputStream and write a pixel signal object to an ObjectOutputStream. The format is:
| Constructor Summary | |
|---|---|
PixelSignal()
Construct a new, uninitialized pixel signal object. |
|
PixelSignal(int fileIndex,
int pixelIndex,
Series S_series)
Construct a new pixel signal object. |
|
PixelSignal(int fileIndex,
int pixelIndex,
short[] S_array)
Construct a new pixel signal object. |
|
| Method Summary | |
|---|---|
int |
fileIndex()
Get the file index. |
void |
fileIndex(int index)
Specify the file index. |
int |
length()
Get the number of measured spin signal values for this pixel. |
int |
pixelIndex()
Get the pixel index. |
void |
pixelIndex(int index)
Specify the pixel index. |
void |
read(DataInput in)
Read this pixel signal object from the given data input stream. |
void |
readExternal(ObjectInput in)
Read this pixel signal object from the given object input stream. |
Series |
S_measured()
Get a series containing this pixel's measured spin signal values. |
void |
S_measured(Series S_series)
Specify a series containing this pixel's measured spin signal values. |
void |
S_measured(short[] S_array)
Specify an array containing this pixel's measured spin signal values. |
void |
write(DataOutput out)
Write this pixel signal object to the given data output stream. |
void |
writeExternal(ObjectOutput out)
Write this pixel signal object to the given object output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PixelSignal()
public PixelSignal(int fileIndex,
int pixelIndex,
short[] S_array)
fileIndex - File index.pixelIndex - Pixel index.S_array - Array containing measured spin signal values, or
null.
public PixelSignal(int fileIndex,
int pixelIndex,
Series S_series)
fileIndex - File index.pixelIndex - Pixel index.S_series - Series containing measured spin signal values, or
null.| Method Detail |
|---|
public int fileIndex()
public void fileIndex(int index)
index - File index.public int pixelIndex()
public void pixelIndex(int index)
index - Pixel index.public int length()
public Series S_measured()
public void S_measured(short[] S_array)
S_array - Array containing measured spin signal values, or null.public void S_measured(Series S_series)
S_series - Series containing measured spin signal values, or null.
public void write(DataOutput out)
throws IOException
Note: The file index and pixel index are not written.
out - Data output stream.
IOException - Thrown if an I/O error occurred.
public void read(DataInput in)
throws IOException
Note: The file index and pixel index are not read.
in - Data input stream.
IOException - Thrown if an I/O error occurred.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface Externalizableout - Object output stream.
IOException - Thrown if an I/O error occurred.
public void readExternal(ObjectInput in)
throws IOException
readExternal in interface Externalizablein - Object input stream.
IOException - Thrown if an I/O error occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||