org.lsst.ccs.drivers.rcm
Class Image

java.lang.Object
  extended by org.lsst.ccs.drivers.rcm.ImageMetadata
      extended by org.lsst.ccs.drivers.rcm.Image
All Implemented Interfaces:
Serializable

public class Image
extends ImageMetadata

Image data

Author:
Owen Saxton
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.lsst.ccs.drivers.rcm.ImageMetadata
address, cluster, element, length, schema, tag, version
 
Constructor Summary
Image(long tag, int length, int schema, int version, int address, int cluster, int element, ByteBuffer data)
           
Image(long tag, int length, int schema, int version, int address, int cluster, int element, long mdata)
          Constructors.
 
Method Summary
 void deleteMetadataRef()
          Deletes the metadata reference.
 void finalize()
          Performs finalization.
 ByteBuffer getData()
          Gets the image pixel data.
 ImageMetadata getMetadata()
          Gets the image metadata.
 
Methods inherited from class org.lsst.ccs.drivers.rcm.ImageMetadata
getAddress, getCluster, getElement, getLength, getSchema, getTag, getVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image

public Image(long tag,
             int length,
             int schema,
             int version,
             int address,
             int cluster,
             int element,
             long mdata)
Constructors.


Image

public Image(long tag,
             int length,
             int schema,
             int version,
             int address,
             int cluster,
             int element,
             ByteBuffer data)
Method Detail

getData

public ByteBuffer getData()
Gets the image pixel data.

Returns:
The image's pixel data if it has been successfully read, or null if it hasn't been. The data returned is a read-only wrapper around the image data to assure the user cannot change the state of the image.

getMetadata

public ImageMetadata getMetadata()
Gets the image metadata.

Returns:
The image's metadata

deleteMetadataRef

public void deleteMetadataRef()
Deletes the metadata reference.


finalize

public void finalize()
              throws Throwable
Performs finalization. Allocated non-java memory (in this case the C++ image metadata object) has to be freed.

Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2013 LSST. All Rights Reserved.