    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class ncsa.horizon.util.FITSImageDataOrigin

    java.lang.Object
       |
       +----ncsa.horizon.util.ImageDataOrigin
               |
               +----ncsa.horizon.util.FITSImageDataOrigin

public class FITSImageDataOrigin
extends ImageDataOrigin

an ImageDataOrigin with constructors set for the FITS convention.

FITS images place the data origin at the bottom left corner and increasing to upward and to the right. The world coordinate associated with the pixel is considered to be at the pixel's center.

Given that the internal data is public, there is nothing stopping the user from altering the specification to a non-FITS convention.

##

FITSImageDataOrigin()
  create a FITSImageDataOrigin object with default values (height = 0).
FITSImageDataOrigin(int)
  create a FITSImageDataOrigin object with xsize = ysize = 1.
FITSImageDataOrigin(int, int, double, double)
  create a fully specified FITSImageDataOrigin object.

##

FITSImageDataOrigin

      public FITSImageDataOrigin(int width,
                                 int height,
                                 double xsize,
                                 double ysize)

  create a fully specified FITSImageDataOrigin object. Positive values for xsize and ysize indicate that the axes increase to the right and upward, respectively.

FITSImageDataOrigin

      public FITSImageDataOrigin(int height)

  create a FITSImageDataOrigin object with xsize = ysize = 1. Note that the width is not needed to use the data conversion methods.

FITSImageDataOrigin

      public FITSImageDataOrigin()

  create a FITSImageDataOrigin object with default values (height = 0). Note that height will need to be set in order to use getDataPixel() and getDisplayPixel();

    All Packages  Class Hierarchy  This Package  Previous  Next  Index