jfits
Class FitsAnnulus

java.lang.Object
  extended by jfits.AbstractFitsShape
      extended by jfits.FitsAnnulus
All Implemented Interfaces:
Shape, FitsShape

public class FitsAnnulus
extends AbstractFitsShape

This class represents an annulus around a center. It might be used for aperture photometry of background levels around stars. The principal axis is the radial distance from the center, the returned ADUs are circular integrals.


Constructor Summary
FitsAnnulus(double rout, double rin)
           
 
Method Summary
private static Shape createRing(Shape r1, Shape r2)
          Creates a general path that is an unconnected shape of two circles.
 List<Vector2D> getPrincipal(AffineTransform a)
          We grab the list of all adus in our bounding rectangle, then define as the principal axis the distance to the center of this box.
 boolean isClosed()
          We are a closed shape.
 
Methods inherited from class jfits.AbstractFitsShape
contains, contains, contains, contains, getAdus, getBounds, getBounds2D, getFitsShape, getPathIterator, getPathIterator, getStatistic, intersects, intersects, registerFits, registerFits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitsAnnulus

public FitsAnnulus(double rout,
                   double rin)
Method Detail

createRing

private static Shape createRing(Shape r1,
                                Shape r2)
Creates a general path that is an unconnected shape of two circles.


getPrincipal

public List<Vector2D> getPrincipal(AffineTransform a)
                            throws nom.tam.fits.FitsException
We grab the list of all adus in our bounding rectangle, then define as the principal axis the distance to the center of this box. We add all pixels within the area by calculating their distance to the center and averageing along the interger of it.

Parameters:
a - How the generic shape is transformed to FITS space.
Throws:
nom.tam.fits.FitsException

isClosed

public boolean isClosed()
We are a closed shape.