@ALDAOperator(genericExecutionMode=ALL,
level=STANDARD)
public class GaussFilterDouble1D
extends ArrayFilterDouble1D
The size of the filter kernel mask is chosen as two times the given standard deviation plus one, truncated to the next full integer value.
If a kernel array is provided, that one is used. Otherwise a kernel is automatically created from the given standard deviation.
| Modifier and Type | Field and Description |
|---|---|
private double[] |
kernel
Kernel array, either provided externally or filled internally based on
given standard deviation.
|
private double |
sigma
Standard deviation of the Gaussian kernel to be applied.
|
dataIsPeriodic, inputArray, outputArray| Constructor and Description |
|---|
GaussFilterDouble1D()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected double[] |
getGaussKernel()
Get normalized Gaussian kernel for given parameters.
|
static double[] |
getGaussKernel(double sigma)
Get normalized Gaussian kernel for given parameters.
|
double[] |
getKernel()
Get the kernel which is currently in use.
|
protected void |
operate()
This method does the actual work.
|
void |
setKernel(double[] k)
Set Gaussian kernel.
|
void |
setSigma(double s)
Set standard deviation of Gaussian kernel.
|
getResultArray, setDataIsPeriodic, setInputArrayreadResolveaddOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getDocumentation, getHidingMode, getInactiveParameterNames, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterDescriptorUnconditioned, getParameterNames, getParameterUnconditioned, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, hasInOutParameters, hasParameter, isAnnotatedParameter, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setParameterUnconditioned, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory@Parameter(label="Standard Deviation \u03a3",
required=true,
dataIOOrder=2,
direction=IN,
description="Standard deviation \u03a3 of Gaussian kernel.")
private double sigma
private double[] kernel
public GaussFilterDouble1D()
throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException - Thrown in case of problems during execution.public void setSigma(double s)
s - Standard deviation to apply.public void setKernel(double[] k)
If provided, sigma is ignored. Note that no checks are included, thus, the user has to take care of correct values and scaling.
This function is especially useful if the same kernel has to be applied many, many times to different data. Then it needs to be generated only once and can be reused.
k - Gaussian kernel array to be used.public double[] getKernel()
protected void operate()
operate in class de.unihalle.informatik.Alida.operator.ALDOperatorprotected double[] getGaussKernel()
public static double[] getGaussKernel(double sigma)
Copyright © 2010–2025 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.