#include <filters.h>
Definition at line 1575 of file filters.h.
◆ apply()
Apply the filter to an image or volume
Implements XmippFilter.
Definition at line 3812 of file filters.cpp.
3817 "Images and basis are of different size");
#define REPORT_ERROR(nerr, ErrormMsg)
Incorrect MultidimArray size.
#define FOR_ALL_DIRECT_ELEMENTS_IN_MULTIDIMARRAY(v)
#define DIRECT_MULTIDIM_ELEM(v, n)
#define NZYX_ELEM(v, l, k, i, j)
void initZeros(const MultidimArray< T1 > &op)
◆ defineParams()
Define the parameters for use inside an Xmipp program
Definition at line 3788 of file filters.cpp.
3792 " [--basis <file> <N=-1>] : Stack file with the basis, N is the number of elements to consider");
void addParamsLine(const String &line)
◆ readParams()
Read from program command line
Reimplemented from XmippFilter.
Definition at line 3796 of file filters.cpp.
3798 fnBasis = program->
getParam(
"--basis");
3800 basis.
read(fnBasis);
3802 basis().resize(Nbasis, 1,
YSIZE(basis()),
XSIZE(basis()));
const char * getParam(const char *param, int arg=0)
int read(const FileName &name, DataMode datamode=DATA, size_t select_img=ALL_IMAGES, bool mapData=false, int mode=WRITE_READONLY)
int getIntParam(const char *param, int arg=0)
◆ show()
void BasisFilter::show |
( |
| ) |
|
|
virtual |
Show parameters
Reimplemented from XmippFilter.
Definition at line 3805 of file filters.cpp.
3807 std::cout <<
" Basis filter\n" <<
" Basis file " << fnBasis << std::endl
3808 <<
" Number of basis " << Nbasis << std::endl;
The documentation for this class was generated from the following files: