Simple slow convolution-based radial mapfiltering implementation. More...
#include <mapfilter.h>
Public Types | |
enum | TYPE { NONE, Absolute, Relative } |
Scaling modes. | |
Public Member Functions | |
MapFilter_slow (const MapFilterFn_base &fltr, const ftype scale=1.0, const TYPE type=NONE) | |
constructor | |
MapFilter_slow (clipper::Xmap< T > &result, const clipper::Xmap< T > &xmap, MapFilterFn_base &fltr, const ftype scale=1.0, const TYPE type=NONE) | |
constructor: shorthand for constructor+operator | |
bool | operator() (clipper::Xmap< T > &result, const clipper::Xmap< T > &xmap) const |
Simple slow convolution-based radial mapfiltering implementation.
This version is of course very slow, and is mainly provided so you can test the repcision of the fft version.
clipper::MapFilter_slow< T >::MapFilter_slow | ( | const MapFilterFn_base & | fltr, | |
const ftype | scale = 1.0 , |
|||
const TYPE | type = NONE | |||
) | [inline] |
constructor
The filter function is constructed with the given filter. Scaling may also be optionally applied. This may be absolute, which just applies a scale factor to the result, or relative, which scales the filter relative to its own integral. Therefore, relative scaling with a scale factor of 1.0 gives an output map on the same scale as the input map.
Note that the filter is not stored internally, and so must persist as long as the MapFilter is required.
fltr | The radial filter to apply. | |
scale | The scale factor to apply (default = 1.0). | |
type | The type of scaling to apply: NONE, Absolute, Relative. |
bool clipper::MapFilter_slow< T >::operator() | ( | clipper::Xmap< T > & | result, | |
const clipper::Xmap< T > & | xmap | |||
) | const [inline, virtual] |
Apply the filter to a given map.
result | The filtered map. | |
xmap | The map to be filtered. |
Implements clipper::MapFilter_base< T >.
References clipper::Xmap< T >::cell(), clipper::Xmap_base::Map_reference_coord::coord(), clipper::Xmap_base::Map_reference_index::coord(), clipper::Xmap< T >::first(), clipper::Xmap< T >::grid_sampling(), clipper::Xmap< T >::init(), clipper::Xmap_base::Map_reference_index::last(), clipper::Xmap_base::Map_reference_index::next(), clipper::Xmap_base::Map_reference_coord::next_u(), clipper::Xmap_base::Map_reference_coord::next_v(), clipper::Xmap_base::Map_reference_coord::next_w(), clipper::Xmap< T >::spacegroup(), clipper::Coord_grid::u(), clipper::Coord_grid::v(), and clipper::Coord_grid::w().