PCL
|
Discrete two-dimensional nonseparable convolution in the spatial domain. More...
#include <Convolution.h>
Protected Member Functions | |
void | Apply (pcl::DImage &) const override |
void | Apply (pcl::Image &) const override |
void | Apply (pcl::UInt16Image &) const override |
void | Apply (pcl::UInt32Image &) const override |
void | Apply (pcl::UInt8Image &) const override |
Protected Member Functions inherited from pcl::ImageTransformation | |
virtual void | Apply (pcl::ComplexImage &image) const |
virtual void | Apply (pcl::DComplexImage &image) const |
Convolution implements a fully multithreaded, two-dimensional discrete nonseparable convolution algorithm. It performs automatic fixing of border artifacts by applying Neumann boundary conditions (mirroring).
Definition at line 86 of file Convolution.h.
|
default |
Default constructor.
|
inline |
Constructs a Convolution instance with the specified filter.
filter | Response function, or convolution filter. The specified object does not have to remain valid while this instance is actively used, since Convolution owns a private copy of the filter (note that KernelFilter is a reference-counted class). |
Definition at line 109 of file Convolution.h.
|
inline |
Copy constructor.
Definition at line 117 of file Convolution.h.
|
default |
Move constructor.
|
inlineoverride |
Destroys this Convolution object.
Definition at line 138 of file Convolution.h.
|
overrideprotectedvirtual |
Applies this transformation to a 64-bit floating point image.
Reimplemented from pcl::ImageTransformation.
|
overrideprotectedvirtual |
Applies this transformation to a 32-bit floating point image.
Reimplemented from pcl::ImageTransformation.
|
overrideprotectedvirtual |
Applies this transformation to a 16-bit unsigned integer image.
Reimplemented from pcl::ImageTransformation.
|
overrideprotectedvirtual |
Applies this transformation to a 32-bit unsigned integer image.
Reimplemented from pcl::ImageTransformation.
|
overrideprotectedvirtual |
Applies this transformation to an 8-bit unsigned integer image.
Reimplemented from pcl::ImageTransformation.
|
inline |
Disables (or enables) high-pass rescaling of out-of-range convolved pixel values. See the documentation for IsHighPassRescalingEnabled() for more information.
Definition at line 259 of file Convolution.h.
|
inline |
Disables (or enables) raw high-pass convolution. See the documentation for IsRawHighPassEnabled() for more information.
Definition at line 292 of file Convolution.h.
|
inline |
Enables (or disables) high-pass rescaling of out-of-range convolved pixel values. See the documentation for IsHighPassRescalingEnabled() for more information.
Definition at line 249 of file Convolution.h.
|
inline |
Enables (or disables) raw high-pass convolution. See the documentation for IsRawHighPassEnabled() for more information.
Definition at line 283 of file Convolution.h.
|
inline |
Returns a reference to the kernel filter currently associated with this Convolution object.
If this object has not been initialized, this member function returns an empty kernel filter.
Definition at line 176 of file Convolution.h.
|
inline |
Returns the current filter weight. The filter weight is computed each time a kernel filter is associated with this object. It is only applied for low-pass filters as a normalization factor. For more information, see the documentation for KernelFilter::Weight().
The filter weight and other filter properties are cached in private data members for quick reference.
Definition at line 200 of file Convolution.h.
|
inline |
Returns true if the kernel filter currently associated with this Convolution object is a high-pass filter; false if it is a low-pass filter. For more information, see the documentation for kernelFilter::IsHighPassFilter().
Each time a kernel filter is associated with this object, its high-pass nature is checked and stored, along with other filter properties, in private data members. This allows for quick lookup of critical filter characteristics without degrading performance.
Definition at line 216 of file Convolution.h.
|
inline |
Returns true iff out-of-range values will be rescaled for normalization of images after convolution with a high-pass filter.
A high-pass filter has negative coefficients. As a result, some pixels in the convolved image may have negative values. Saturated pixels (values above one) can also result, depending on the filter coefficients. The standard behavior is to truncate out-of-range pixel values to the [0,1] range, which preserves the dynamics of the convolved image, so high-pass rescaling is disabled by default. When high-pass rescaling is enabled, the resulting image is normalized (that is, rescaled to [0,1] only if there are out-of-range values) and hence all the data after convolution are preserved at the cost of reducing the overall contrast of the image. Finally, if raw high-pass convolution has been enabled, out-of-range values are neither truncated nor rescaled irrespective of the value returned by this function. See the documentation for IsRawHighPassEnabled() for more information.
Definition at line 239 of file Convolution.h.
|
inline |
Returns true iff raw high-pass convolution is enabled. When raw high-pass convolution is enabled, out-of-range values after convolution with a high-pass filter are neither truncated nor normalized. Note that this is only relevant to convolution of floating point data.
Raw high-pass convolution is disabled by default. For more information on out-of-range convolution results, refer to the documentation for IsHighPassRescalingEnabled().
Definition at line 274 of file Convolution.h.
|
inline |
Copy assignment operator. Returns a reference to this object.
Definition at line 145 of file Convolution.h.
|
default |
Move assignment operator. Returns a reference to this object.
|
inline |
Returns the length in pixels of the overlapping regions between adjacent areas processed by parallel execution threads. The overlapping distance is a function of the filter size and the interlacing distance.
Definition at line 302 of file Convolution.h.
|
inline |
Sets a new kernel filter to be applied by this Convolution object.
Definition at line 185 of file Convolution.h.
References pcl::KernelFilter::Clone().