The LaplacianOfGaussianFilter class implements the Filter interface and provides Laplacian of Gaussian computation using Gaussian derivative filters.
More...
#include "libArrayToolbox/LaplacianOfGaussianFilter.hh"
|
| LaplacianOfGaussianFilter (BoundaryTreatmentType bt=ValueBT, DataT const &boundaryValue=traits< DataT >::zero) |
| Default Constructor. More...
|
|
| LaplacianOfGaussianFilter (double standardDeviationUm, blitz::TinyVector< BlitzIndexT, Dim > const &minimumKernelShapePx=BlitzIndexT(0), BoundaryTreatmentType bt=ValueBT, DataT const &boundaryValue=traits< DataT >::zero) |
| Constructor. More...
|
|
virtual | ~LaplacianOfGaussianFilter () |
| Destructor. More...
|
|
virtual void | apply (Array< DataT, Dim > const &data, Array< DataT, Dim > &result, iRoCS::ProgressReporter *pr=NULL) const |
| Apply the filter to the given Array. More...
|
|
virtual void | apply (blitz::Array< DataT, Dim > const &data, blitz::TinyVector< double, Dim > const &elementSizeUm, blitz::Array< ResultT, Dim > &filtered, iRoCS::ProgressReporter *pr=NULL) const |
| Apply the filter to the given Array. More...
|
|
BoundaryTreatment< DataT, Dim > const & | boundaryTreatment () const |
| Get a read-only reference to the boundary treatment object associated with this filter. More...
|
|
blitz::TinyVector< BlitzIndexT, Dim > | minimumKernelShapePx () const |
| Get the minimum kernel shape of the Gaussian in pixels for all dimensions. More...
|
|
void | renderKernel (atb::Array< DataT, Dim > &kernel) const |
| Render the used kernel into the given Array. More...
|
|
void | setBoundaryTreatment (BoundaryTreatmentType bt, DataT const &boundaryValue=traits< DataT >::zero) |
| Change the boundary treatment type to the type specified. More...
|
|
void | setBoundaryTreatment (BoundaryTreatment< DataT, Dim > const &bt) |
| Change the boundary treatment type to the type specified. More...
|
|
void | setMinimumKernelShapePx (blitz::TinyVector< BlitzIndexT, Dim > const &minimumKernelShapePx) const |
| Set the minimum kernel shape of the Gaussian in pixels for all dimensions. More...
|
|
void | setStandardDeviationUm (double standardDeviationUm) |
| Set the standard deviation of the Gaussian. More...
|
|
double | standardDeviationUm () const |
| Get the standard deviation of the Gaussian. More...
|
|
|
static void | apply (blitz::Array< DataT, Dim > const &data, blitz::TinyVector< double, Dim > const &elementSizeUm, blitz::Array< ResultT, Dim > &filtered, double standardDeviationUm, blitz::TinyVector< BlitzIndexT, Dim > const &minimumKernelShapePx=BlitzIndexT(0), BoundaryTreatmentType btType=ValueBT, DataT const &boundaryValue=traits< DataT >::zero, iRoCS::ProgressReporter *pr=NULL) |
| Apply the filter to the given Array. More...
|
|
static void | apply (Array< DataT, Dim > const &data, Array< ResultT, Dim > &filtered, double standardDeviationUm, blitz::TinyVector< BlitzIndexT, Dim > const &minimumKernelShapePx=BlitzIndexT(0), BoundaryTreatmentType btType=ValueBT, DataT const &boundaryValue=traits< DataT >::zero, iRoCS::ProgressReporter *pr=NULL) |
| Apply the filter to the given Array. More...
|
|
template<typename DataT, int Dim>
class atb::LaplacianOfGaussianFilter< DataT, Dim >
The LaplacianOfGaussianFilter class implements the Filter interface and provides Laplacian of Gaussian computation using Gaussian derivative filters.
Definition at line 53 of file LaplacianOfGaussianFilter.hh.
◆ ResultT
template<typename DataT , int Dim>
◆ LaplacianOfGaussianFilter() [1/2]
template<typename DataT , int Dim>
Default Constructor.
Creates a Laplacian of Gaussian filter.
- Parameters
-
bt | The boundary treatment this filter uses |
boundaryValue | If bt is ValueBT, this value will be used for out-of-Array access |
◆ LaplacianOfGaussianFilter() [2/2]
template<typename DataT , int Dim>
Constructor.
- Parameters
-
standardDeviationUm | The isotropic standard deviation of the Gaussian in micrometers |
minimumKernelShapePx | The minimum kernel shape in pixels. Usually the kernel has a shape of 12 * standardDeviation (in pixels) + 1 in the dimension of the derivative and half the size for the perpendicular directions. If you want to explicitely force larger kernels you can give the minimum kernel extents here. |
bt | The boundary treatment this filter uses |
boundaryValue | If bt is ValueBT, this value will be used for out-of-Array access |
◆ ~LaplacianOfGaussianFilter()
template<typename DataT , int Dim>
◆ standardDeviationUm()
template<typename DataT , int Dim>
◆ setStandardDeviationUm()
template<typename DataT , int Dim>
Set the standard deviation of the Gaussian.
- Parameters
-
standardDeviationUm | The standard deviation of the Gaussian in micrometers |
Definition at line 123 of file LaplacianOfGaussianFilter.hh.
◆ minimumKernelShapePx()
template<typename DataT , int Dim>
◆ setMinimumKernelShapePx()
template<typename DataT , int Dim>
Set the minimum kernel shape of the Gaussian in pixels for all dimensions.
- Parameters
-
minimumKernelShapePx | The minimum kernel shape in pixels |
Definition at line 149 of file LaplacianOfGaussianFilter.hh.
◆ renderKernel()
template<typename DataT , int Dim>
◆ apply() [1/4]
template<typename DataT , int Dim>
◆ apply() [2/4]
template<typename DataT , int Dim>
static void atb::LaplacianOfGaussianFilter< DataT, Dim >::apply |
( |
blitz::Array< DataT, Dim > const & |
data, |
|
|
blitz::TinyVector< double, Dim > const & |
elementSizeUm, |
|
|
blitz::Array< ResultT, Dim > & |
filtered, |
|
|
double |
standardDeviationUm, |
|
|
blitz::TinyVector< BlitzIndexT, Dim > const & |
minimumKernelShapePx = BlitzIndexT(0) , |
|
|
BoundaryTreatmentType |
btType = ValueBT , |
|
|
DataT const & |
boundaryValue = traits< DataT >::zero , |
|
|
iRoCS::ProgressReporter * |
pr = NULL |
|
) |
| |
|
static |
Apply the filter to the given Array.
- Parameters
-
data | The blitz++ Array to apply the filter to |
elementSizeUm | The element size of the Array |
filtered | The filtering result |
standardDeviationUm | The standard deviation of the Gaussian |
btType | The boundary treatment to apply |
boundaryValue | The out-of-Array value that should be used if btType == ValueBT |
- Exceptions
-
RuntimeError | If an error occurs during the filter operation an exception of this kind is thrown |
◆ apply() [3/4]
template<typename DataT , int Dim>
static void atb::LaplacianOfGaussianFilter< DataT, Dim >::apply |
( |
Array< DataT, Dim > const & |
data, |
|
|
Array< ResultT, Dim > & |
filtered, |
|
|
double |
standardDeviationUm, |
|
|
blitz::TinyVector< BlitzIndexT, Dim > const & |
minimumKernelShapePx = BlitzIndexT(0) , |
|
|
BoundaryTreatmentType |
btType = ValueBT , |
|
|
DataT const & |
boundaryValue = traits< DataT >::zero , |
|
|
iRoCS::ProgressReporter * |
pr = NULL |
|
) |
| |
|
static |
Apply the filter to the given Array.
- Parameters
-
data | The blitz++ Array to apply the filter to |
filtered | The filtering result |
standardDeviationUm | The standard deviation of the Gaussian |
btType | The boundary treatment to apply |
boundaryValue | If btType is Value, this value is assumed outside the Arrays |
btType | The boundary treatment to apply |
boundaryValue | The out-of-Array value that should be used if btType == ValueBT |
- Exceptions
-
RuntimeError | If an error occurs during the filter operation an exception of this kind is thrown |
◆ boundaryTreatment()
Get a read-only reference to the boundary treatment object associated with this filter.
- Returns
- A reference to the associated BoundaryTreatment object
◆ setBoundaryTreatment() [1/2]
Change the boundary treatment type to the type specified.
- Parameters
-
bt | The boundary treatment this filter uses |
boundaryValue | If bt is ValueBT, this value will be used for out-of-Array access |
◆ setBoundaryTreatment() [2/2]
Change the boundary treatment type to the type specified.
- Parameters
-
bt | The boundary treatment this filter uses |
◆ apply() [4/4]
Apply the filter to the given Array.
- Parameters
-
data | The Array to apply the filter to |
result | The filtering result |
pr | If given progress will be reported to this ProgressReporter |
- Exceptions
-
RuntimeError | If an error occurs during the filter operation an exception of this kind is thrown |
◆ p_bt
The boundary treatment object to use for out-of-Array access.
This is set during Filter object creation and can be changed by calling the setBoundaryTreatment() method. It gets destroyed, when the filter is deleted. If you delete the BoundaryTreatment object in a subclass, you must set this pointer to the NULL pointer.
Definition at line 159 of file Filter.hh.
The documentation for this class was generated from the following file: