edu.rit.mri
Class PixelChunk
- java.lang.Object
-
- edu.rit.mri.PixelChunk
-
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
public class PixelChunk extends java.lang.Object implements java.io.ExternalizableClass PixelChunk encapsulates a chunk of pixels on which to perform a spin relaxometry analysis.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description PixelChunk()Construct a new, uninitialized pixel chunk object.PixelChunk(int fileIndex, int pixelIndex, int pixelCount)Construct a new pixel chunk object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intfileIndex()Get the file index.intpixelCount()Get the number of pixels to analyze.intpixelIndex()Get the pixel index of the first pixel to analyze.voidreadExternal(java.io.ObjectInput in)Read this pixel chunk object from the given object input stream.voidwriteExternal(java.io.ObjectOutput out)Write this pixel chunk object to the given object output stream.
-
-
-
Constructor Detail
-
PixelChunk
public PixelChunk()
Construct a new, uninitialized pixel chunk object. This constructor is for use only by object deserialization.
-
PixelChunk
public PixelChunk(int fileIndex, int pixelIndex, int pixelCount)Construct a new pixel chunk object.- Parameters:
fileIndex- File index.pixelIndex- Pixel index of first pixel to analyze.pixelCount- Number of pixels to analyze.
-
-
Method Detail
-
fileIndex
public int fileIndex()
Get the file index.- Returns:
- File index.
-
pixelIndex
public int pixelIndex()
Get the pixel index of the first pixel to analyze.- Returns:
- Pixel index.
-
pixelCount
public int pixelCount()
Get the number of pixels to analyze.- Returns:
- Pixel count.
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionWrite this pixel chunk object to the given object output stream.- Specified by:
writeExternalin interfacejava.io.Externalizable- Parameters:
out- Object output stream.- Throws:
java.io.IOException- Thrown if an I/O error occurred.
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOExceptionRead this pixel chunk object from the given object input stream.- Specified by:
readExternalin interfacejava.io.Externalizable- Parameters:
in- Object input stream.- Throws:
java.io.IOException- Thrown if an I/O error occurred.
-
-
DMelt 3.0 © DataMelt by jWork.ORG