com.c3d.image.hips
Class HipsPoint3fImage

java.lang.Object
  |
  +--com.c3d.image.hips.HipsImage
        |
        +--com.c3d.image.hips.HipsPoint3fImage

public class HipsPoint3fImage
extends HipsImage

Read in a Point3f HIPS image, with all its frames into memory. The points are stored directly as Point3fs, which may be rather inefficient. It is assumed that the raw data is in Windows format, so the bytes on all the floats are swapped.


Fields inherited from class com.c3d.image.hips.HipsImage
BUFSIZ, cols_, fcol_, frow_, isDataLoaded_, num_frame_, numcolor_, ocols_, orig_date_, orig_name_, orows_, params_, PFAHC, PFAHC3, PFASCII, PFBQ, PFBT, PFBYTE, PFCHAIN, PFCOLVEC, PFCOMPLEX, PFDBLCOM, PFDOUBLE, PFDVFFT2D, PFDVFFT3D, PFDVVFFT3D, PFFLOAT, PFFLOATPYR, PFGEN, PFGRLE, PFHIST, PFINT, PFINTPYR, PFLSBF, PFLUT, PFMIXED, PFMSBF, PFOCT, PFPOLAR, PFPOLYLINE, PFQUAD, PFQUAD1, PFRGB, PFRGBZ, PFRGISPLINE, PFRGPLINE, PFRLEB, PFRLED, PFRLEW, PFSBYTE, PFSHORT, PFSPAN, PFSRLE, PFSTEREO, PFUINT, PFUKOOA, PFUSHORT, PFVFFT2D, PFVFFT3D, PFVVFFT3D, pixel_format_, PLOT3D, rows_, seq_desc_, seq_history_, seq_name_, sizedesc_, sizehist_
 
Constructor Summary
HipsPoint3fImage(java.io.InputStream in)
          Read an image in from a stream.
HipsPoint3fImage(java.lang.String fileName)
          Read an image in from a file, given by a filename.
 
Method Summary
 javax.vecmath.Point3f[] getFrame(int i)
          Access an image frame.
static void main0(java.lang.String[] args)
           
 HipsImage subImage(int srcX, int srcY, int width, int height)
           
protected  void writeData(java.io.OutputStream out)
           
 
Methods inherited from class com.c3d.image.hips.HipsImage
b2i, bilinearInterp, byte2pixels, byte2pixels, cols, copyFrom, fcol, finishLine, frow, getHeight, getParam, getPixel, getPixel, getWidth, i2b, int2pixels, int2pixels, isDataLoaded, isMSB, main, num_frame, numcolor, numImage, numparam, numpix, orig_date, orig_name, params, pixel_format, readFrame, readFromStream, readLine, rgbPixels, rows, scale, seq_desc, seq_history, seq_name, setMSB, setParam, sizedesc, sizehist, sizeimage, sizepix, swab, swab2, writeBytes, writeFrame, writeLine, writeToFile, writeToStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HipsPoint3fImage

public HipsPoint3fImage(java.io.InputStream in)
                 throws HipsException,
                        java.io.IOException
Read an image in from a stream. The data frames are filled in. The stream is left open.
Parameters:
in - Input stream from which image is read.

HipsPoint3fImage

public HipsPoint3fImage(java.lang.String fileName)
                 throws HipsException,
                        java.io.FileNotFoundException,
                        java.io.IOException
Read an image in from a file, given by a filename. The data frames are filled in. The filename is in local file system format.
Parameters:
in - Name of file from which image is read.
Method Detail

writeData

protected void writeData(java.io.OutputStream out)
                  throws java.io.IOException
Overrides:
writeData in class HipsImage

getFrame

public javax.vecmath.Point3f[] getFrame(int i)
Access an image frame. The data is presented as a linear array.
Parameters:
i - Index (0 start) of the frame to be read in. Shouldn't exceed num_frame().

subImage

public HipsImage subImage(int srcX,
                          int srcY,
                          int width,
                          int height)
Overrides:
subImage in class HipsImage

main0

public static void main0(java.lang.String[] args)