edu.rit.mri
Class PixelChunk

java.lang.Object
  extended by edu.rit.mri.PixelChunk
All Implemented Interfaces:
Externalizable, Serializable

public class PixelChunk
extends Object
implements Externalizable

Class PixelChunk encapsulates a chunk of pixels on which to perform a spin relaxometry analysis.

See Also:
Serialized Form

Constructor Summary
PixelChunk()
          Construct a new, uninitialized pixel chunk object.
PixelChunk(int fileIndex, int pixelIndex, int pixelCount)
          Construct a new pixel chunk object.
 
Method Summary
 int fileIndex()
          Get the file index.
 int pixelCount()
          Get the number of pixels to analyze.
 int pixelIndex()
          Get the pixel index of the first pixel to analyze.
 void readExternal(ObjectInput in)
          Read this pixel chunk object from the given object input stream.
 void writeExternal(ObjectOutput out)
          Write this pixel chunk 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

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(ObjectOutput out)
                   throws IOException
Write this pixel chunk object to the given object output stream.

Specified by:
writeExternal in interface Externalizable
Parameters:
out - Object output stream.
Throws:
IOException - Thrown if an I/O error occurred.

readExternal

public void readExternal(ObjectInput in)
                  throws IOException
Read this pixel chunk object from the given object input stream.

Specified by:
readExternal in interface Externalizable
Parameters:
in - Object input stream.
Throws:
IOException - Thrown if an I/O error occurred.


Copyright © 2005-2012 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.