Package skyview.data
Class BoxSmoother
- java.lang.Object
-
- skyview.process.Processor
-
- skyview.data.BoxSmoother
-
- All Implemented Interfaces:
java.io.Serializable,Component
public class BoxSmoother extends Processor
Do a box car smoothing of an image- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BoxSmoother()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Get the description of this component.java.lang.StringgetName()Get the name of this component.voidprocess(Image[] inputs, Image output, int[] selector, Sampler samp, DepthSampler dsamp)Use as a postprocessorvoidsmooth()Smooth the current image according to the prescribed size of the box.static voidsmooth(double[] data, int imageWidth, int imageHeight, int imageDepth, int boxWidth, int boxHeight)static voidsmooth(Image img, int boxWidth, int boxHeight)Smooth an image directlyvoidupdateHeader(nom.tam.fits.Header h)Add information about the smoothing to the FITS headerbooleanupdatesOutput()Does this processor actually modify the output array?
-
-
-
Method Detail
-
updatesOutput
public boolean updatesOutput()
Description copied from class:ProcessorDoes this processor actually modify the output array?- Specified by:
updatesOutputin classProcessor
-
getName
public java.lang.String getName()
Description copied from interface:ComponentGet the name of this component.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ComponentGet the description of this component.
-
process
public void process(Image[] inputs, Image output, int[] selector, Sampler samp, DepthSampler dsamp)
Use as a postprocessor- Specified by:
processin classProcessor- 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.selector- 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).
-
smooth
public static void smooth(Image img, int boxWidth, int boxHeight)
Smooth an image directly
-
smooth
public static void smooth(double[] data, int imageWidth, int imageHeight, int imageDepth, int boxWidth, int boxHeight)
-
smooth
public void smooth()
Smooth the current image according to the prescribed size of the box. When going over the edges of the box we re-use the edge pixels.
-
updateHeader
public void updateHeader(nom.tam.fits.Header h)
Add information about the smoothing to the FITS header- Specified by:
updateHeaderin classProcessor
-
-