skyview.ij
Class IJProcessor

java.lang.Object
  extended by skyview.ij.IJProcessor
All Implemented Interfaces:
java.io.Serializable, Component, SettingsUpdater, Processor

public class IJProcessor
extends java.lang.Object
implements Processor, SettingsUpdater

This class uses ImageJ to create non-FITS image products. The following keyword settings are supported:

Quicklook
Specifies the format to be used for a quicklook image. Supported formats are: JPEG, GIF, TIFF, BMP and PNG.
Scaling
Specifies how the brigtness of the image is to be scaled. Supported values include:
Log
Logarithmic scaling.
Sqrt
Scaling as the square root of the pixel value.
Linear
Linear scaling.
HistEq
Histogram equalization scaling.
Inverse
Invert the color table.
Lut
Load a look-up table.
If any of these keywords are found, the updateSettings will ensure that there the IJProcessor is included as a postprocessor, so the user need not explicitly specify this.

See Also:
Serialized Form

Constructor Summary
IJProcessor()
           
 
Method Summary
 java.lang.String getDescription()
          Get the description of this component.
 java.lang.String getName()
          Get the name of this component.
static java.util.ArrayList<ImagePlus> getSavedImages()
           
 void process(Image[] inputs, Image output, int[] source, Sampler samp, DepthSampler dsamp)
          Perform the processing task associated with this object.
 void updateHeader(Header header)
          Update the FITS header to indicate what processing was done.
 void updateSettings()
          This method ensures the the IJProcessor setting is set up if any of it's facilities are requested.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IJProcessor

public IJProcessor()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Component
Get the name of this component.

Specified by:
getName in interface Component

getDescription

public java.lang.String getDescription()
Description copied from interface: Component
Get the description of this component.

Specified by:
getDescription in interface Component

updateSettings

public void updateSettings()
This method ensures the the IJProcessor setting is set up if any of it's facilities are requested.

Specified by:
updateSettings in interface SettingsUpdater

process

public void process(Image[] inputs,
                    Image output,
                    int[] source,
                    Sampler samp,
                    DepthSampler dsamp)
Description copied from interface: Processor
Perform the processing task associated with this object.

Specified by:
process in interface Processor
Parameters:
inputs - The array of input survey images.
output - The output user image. A null output may signal that an error has taken place. If this processor wishes to do something in response to the error, it may look at the ErrorMsg setting.
source - An array giving the source image for each output pixel.
samp - The sampler object used to do spatial sampling of the input images.
dsamp - The sampler in the energy dimension (often null).

updateHeader

public void updateHeader(Header header)
Description copied from interface: Processor
Update the FITS header to indicate what processing was done.

Specified by:
updateHeader in interface Processor

getSavedImages

public static java.util.ArrayList<ImagePlus> getSavedImages()