Package skyview.data
Class WeightedSmoother
- java.lang.Object
-
- skyview.process.Processor
-
- skyview.data.WeightedSmoother
-
- All Implemented Interfaces:
java.io.Serializable,Component
- Direct Known Subclasses:
GaussSmoother,NormedGaussSmoother
public abstract class WeightedSmoother extends Processor
Smooth an image using a rectangular array of weights- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WeightedSmoother()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(Image[] inputs, Image output, int[] selector, Sampler samp, DepthSampler dsamp)Use as a postprocessorprotected voidsetSmoothSize(int nx, int ny)voidsmooth()Smooth the current image according to the prescribed size of the box.booleanupdatesOutput()Does this processor actually modify the output array?-
Methods inherited from class skyview.process.Processor
updateHeader
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface skyview.Component
getDescription, getName
-
-
-
-
Method Detail
-
updatesOutput
public boolean updatesOutput()
Description copied from class:ProcessorDoes this processor actually modify the output array?- Specified by:
updatesOutputin classProcessor
-
setSmoothSize
protected void setSmoothSize(int nx, int ny)
-
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 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.
-
-