3.3.2.16. Class Filter¶
- Defined in File filter.h
3.3.2.16.1. Class Documentation¶
-
class
Filter
¶ Frequency filter.
Public Functions
-
Filter
()¶
-
~Filter
()¶
-
PaddingType
padding_type
() const¶ Get padding type.
- Return
- padding type
-
FilterMetadata
Metadata
() const¶
-
bool
CanBeApplied
(const ZoomRatio &zoom_ratio) const¶ Check that the filter can be applied on the given zoom ratio.
- Return
- bool
- Parameters
zoom_ratio
:
-
fftw::ComplexUPtr
Process
(const Size &image_size, fftw::ComplexUPtr image_fft) const¶ Apply the filter on the image_fft.
- Remark
- This method is thread safe
- Return
- the filtered fft
- Parameters
image_size
: size of the image of the fftimage_fft
: image fft computed by FFTW
- Exceptions
sirius::Exception
: if the filter cannot be applied on the image FFT
Public Static Functions
-
static Filter
Create
(Image filter_image, const ZoomRatio &zoom_ratio, const Point &hot_point = filter_default_hot_point, PaddingType padding_type = PaddingType::kMirrorPadding, bool normalize = false)¶ Filter which is adapted specifically for a particular zoom ratio.
- Parameters
filter_image
: image of the filterzoom_ratio
: ratio on which the filter must be appliedpadding_type
: padding typenormalize
: normalize filter
- Exceptions
sirius::Exception
: if the filter image cannot be loaded
-