#include <filters.h>
Definition at line 1538 of file filters.h.
◆ apply()
Apply the filter to an image or volume
Implements XmippFilter.
Definition at line 3775 of file filters.cpp.
3779 smoothingShah(img, surface_strength, edge_strength, Shah_weight, Shah_outer,
3780 Shah_inner, Shah_refinement);
3782 img = edge_strength;
3784 img = surface_strength;
void smoothingShah(MultidimArray< double > &img, MultidimArray< double > &surface_strength, MultidimArray< double > &edge_strength, const Matrix1D< double > &W, int OuterLoops, int InnerLoops, int RefinementLoops, bool adjust_range)
◆ defineParams()
void DiffusionFilter::defineParams |
( |
XmippProgram * |
program | ) |
|
|
static |
Define the parameters for use inside an Xmipp program
Definition at line 3725 of file filters.cpp.
3729 " [--diffusion] : Use anisotropic diffusion filter.");
3731 " [--shah_iter+ <outer=10> <inner=1> <refinement=1>] : Diffusion outer, inner and refinement iterations");
3734 " [--shah_weight+ <w0=0> <w1=50> <w2=50> <w3=0.02>]:Diffusion weights");
3736 " : w0 = data matching ");
3738 " : w1 = 1st derivative smooth ");
3740 " : w2 = edge strength ");
3742 " : w3 = edge smoothness ");
3745 " [--shah_only_edge+] : Produce the edge image of the diffusion");
void addParamsLine(const String &line)
◆ readParams()
Read from program command line
Reimplemented from XmippFilter.
Definition at line 3750 of file filters.cpp.
3753 Shah_outer = program->
getIntParam(
"--shah_iter", 0);
3754 Shah_inner = program->
getIntParam(
"--shah_iter", 1);
3755 Shah_refinement = program->
getIntParam(
"--shah_iter", 2);
3760 Shah_edge = program->
checkParam(
"--shah_only_edge");
double getDoubleParam(const char *param, int arg=0)
void resizeNoCopy(int Xdim)
bool checkParam(const char *param)
int getIntParam(const char *param, int arg=0)
◆ show()
void DiffusionFilter::show |
( |
| ) |
|
|
virtual |
Show parameters
Reimplemented from XmippFilter.
Definition at line 3763 of file filters.cpp.
3765 std::cout <<
" Shah difussion\n" <<
" Outer iterations " << Shah_outer
3766 << std::endl <<
" Inner iterations " << Shah_inner << std::endl
3767 <<
" Refinement interations " << Shah_refinement << std::endl
3768 <<
" Weight " << Shah_weight.
transpose() << std::endl;
3770 std::cout <<
" Generating edge image\n";
Matrix1D< T > transpose() const
The documentation for this class was generated from the following files: