net.grelf.grip
Enum AstroProcessMethod

java.lang.Object
  extended by java.lang.Enum<AstroProcessMethod>
      extended by net.grelf.grip.AstroProcessMethod
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AstroProcessMethod>

public enum AstroProcessMethod
extends java.lang.Enum<AstroProcessMethod>

New 2009/8/29


Enum Constant Summary
SHIFT_AVERAGE
          It has become apparent that there are not always enough stars in a telescopic field for the warping algorithm, which really needs at least 9 objects that are matchable throughout the sequence of images.
SHIFT_BRIGHTEST
          In some images (eg, photos of planets) there is really only one large bright object.
WARP
          GRIP was designed on the premise that simply shifting images to superimpose them would not be good enough because camera and telescope optics always distort images to some extent.
 
Method Summary
static AstroProcessMethod valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AstroProcessMethod[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WARP

public static final AstroProcessMethod WARP
GRIP was designed on the premise that simply shifting images to superimpose them would not be good enough because camera and telescope optics always distort images to some extent. If objects have moved from one frame to the next they will not be distorted in exactly the same way. So recognising objects by their mutual patterns and then warping to superimpose them for noise reduction was GRIP's original method of working.


SHIFT_AVERAGE

public static final AstroProcessMethod SHIFT_AVERAGE
It has become apparent that there are not always enough stars in a telescopic field for the warping algorithm, which really needs at least 9 objects that are matchable throughout the sequence of images. So this simpler method is offered. It finds the average offsets of all objects from one image to another and simply shifts (ie, translates) an image by that average offset for superimposing it on the accumulating image.


SHIFT_BRIGHTEST

public static final AstroProcessMethod SHIFT_BRIGHTEST
In some images (eg, photos of planets) there is really only one large bright object. For this case, GRIP now also offers the simplest possibility: measure the offset of only the brightest object in every image and stack the images using only those shifts.

Method Detail

values

public static AstroProcessMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AstroProcessMethod c : AstroProcessMethod.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AstroProcessMethod valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null