Xmipp
v3.23.11-Nereus
|
#include <classify_extract_features.h>
Public Member Functions | |
ProgExtractFeatures ()=default | |
ProgExtractFeatures (const ProgExtractFeatures &)=delete | |
ProgExtractFeatures (const ProgExtractFeatures &&)=delete | |
~ProgExtractFeatures () | |
ProgExtractFeatures & | operator= (const ProgExtractFeatures &)=delete |
ProgExtractFeatures & | operator= (const ProgExtractFeatures &&)=delete |
void | readParams () |
Read argument. More... | |
void | show () |
Show. More... | |
void | defineParams () |
Define parameters. More... | |
int | facs (int n) |
Function for returning factorial up to n=4. More... | |
void | extractEntropy (const MultidimArray< double > &I, MultidimArray< double > &Imasked, std::vector< double > &fv) |
Extracting entropy features. More... | |
void | extractGranulo (const MultidimArray< double > &I, std::vector< double > &fv) |
Extracting granulometry features. More... | |
void | extractHistDist (const MultidimArray< double > &I, std::vector< double > &fv) |
Extracting histogram distances. More... | |
void | extractLBP (const MultidimArray< double > &I, std::vector< double > &fv) |
void | extractRamp (const MultidimArray< double > &I, std::vector< double > &fv) |
Gray ramp coefficients. More... | |
void | extractVariance (const MultidimArray< double > &I, std::vector< double > &fv) |
Extracting variance features. More... | |
void | extractZernike (const MultidimArray< double > &I, std::vector< double > &fv) |
void | run () |
Main routine. More... | |
Public Member Functions inherited from XmippProgram | |
const char * | getParam (const char *param, int arg=0) |
const char * | getParam (const char *param, const char *subparam, int arg=0) |
int | getIntParam (const char *param, int arg=0) |
int | getIntParam (const char *param, const char *subparam, int arg=0) |
double | getDoubleParam (const char *param, int arg=0) |
double | getDoubleParam (const char *param, const char *subparam, int arg=0) |
float | getFloatParam (const char *param, int arg=0) |
float | getFloatParam (const char *param, const char *subparam, int arg=0) |
void | getListParam (const char *param, StringVector &list) |
int | getCountParam (const char *param) |
bool | checkParam (const char *param) |
bool | existsParam (const char *param) |
void | addParamsLine (const String &line) |
void | addParamsLine (const char *line) |
ParamDef * | getParamDef (const char *param) const |
virtual void | quit (int exit_code=0) const |
virtual int | tryRun () |
void | initProgress (size_t total, size_t stepBin=60) |
void | setProgress (size_t value=0) |
void | endProgress () |
void | processDefaultComment (const char *param, const char *left) |
void | setDefaultComment (const char *param, const char *comment) |
virtual void | initComments () |
void | setProgramName (const char *name) |
void | addUsageLine (const char *line, bool verbatim=false) |
void | clearUsage () |
void | addExampleLine (const char *example, bool verbatim=true) |
void | addSeeAlsoLine (const char *seeAlso) |
void | addKeywords (const char *keywords) |
const char * | name () const |
virtual void | usage (int verb=0) const |
virtual void | usage (const String ¶m, int verb=2) |
int | version () const |
virtual void | show () const |
virtual void | read (int argc, const char **argv, bool reportErrors=true) |
virtual void | read (int argc, char **argv, bool reportErrors=true) |
void | read (const String &argumentsLine) |
XmippProgram () | |
XmippProgram (int argc, const char **argv) | |
virtual | ~XmippProgram () |
Public Attributes | |
FileName | fnSel |
FileName | fnOut |
bool | applyDenoising |
bool | useEntropy |
bool | useGranulo |
bool | useHistDist |
bool | useLBP |
bool | useRamp |
bool | useVariance |
bool | useZernike |
MultidimArray< int > | masks [7] |
MultidimArray< int > | rampMask |
FitPoint * | fitPoints =nullptr |
int | NmaskPoints |
Public Attributes inherited from XmippProgram | |
bool | doRun |
bool | runWithoutArgs |
int | verbose |
Verbosity level. More... | |
int | debug |
Additional Inherited Members | |
Protected Member Functions inherited from XmippProgram | |
void | defineCommons () |
Protected Attributes inherited from XmippProgram | |
int | errorCode |
ProgramDef * | progDef |
Program definition and arguments parser. More... | |
std::map< String, CommentList > | defaultComments |
int | argc |
Original command line arguments. More... | |
const char ** | argv |
Definition at line 37 of file classify_extract_features.h.
|
default |
|
delete |
|
delete |
ProgExtractFeatures::~ProgExtractFeatures | ( | ) |
Definition at line 33 of file classify_extract_features.cpp.
|
virtual |
Define parameters.
Reimplemented from XmippProgram.
Definition at line 74 of file classify_extract_features.cpp.
void ProgExtractFeatures::extractEntropy | ( | const MultidimArray< double > & | I, |
MultidimArray< double > & | Imasked, | ||
std::vector< double > & | fv | ||
) |
Extracting entropy features.
Definition at line 98 of file classify_extract_features.cpp.
void ProgExtractFeatures::extractGranulo | ( | const MultidimArray< double > & | I, |
std::vector< double > & | fv | ||
) |
Extracting granulometry features.
Definition at line 190 of file classify_extract_features.cpp.
void ProgExtractFeatures::extractHistDist | ( | const MultidimArray< double > & | I, |
std::vector< double > & | fv | ||
) |
Extracting histogram distances.
Definition at line 269 of file classify_extract_features.cpp.
void ProgExtractFeatures::extractLBP | ( | const MultidimArray< double > & | I, |
std::vector< double > & | fv | ||
) |
Extracting LBP features See method at Ojala, Timo, Matti Pietikainen, and Topi Maenpaa. "Multiresolution gray-scale and rotation invariant texture classification with local binary patterns." IEEE Transactions on Pattern Analysis and Machine Intelligence 24.7 (2002): 971-987.
Definition at line 365 of file classify_extract_features.cpp.
void ProgExtractFeatures::extractRamp | ( | const MultidimArray< double > & | I, |
std::vector< double > & | fv | ||
) |
Gray ramp coefficients.
Definition at line 419 of file classify_extract_features.cpp.
void ProgExtractFeatures::extractVariance | ( | const MultidimArray< double > & | I, |
std::vector< double > & | fv | ||
) |
void ProgExtractFeatures::extractZernike | ( | const MultidimArray< double > & | I, |
std::vector< double > & | fv | ||
) |
Extracting Zernike moments See method at A. Tahmasbi, F. Saki, S. B. Shokouhi, Classification of Benign and Malignant Masses Based on Zernike Moments, Comput. Biol. Med., vol. 41, no. 8, pp. 726-735, 2011 and also F. Saki, A. Tahmasbi, H. Soltanian-Zadeh, S. B. Shokouhi, Fast opposite weight learning rules with application in breast cancer diagnosis, Comput. Biol. Med., vol. 43, no. 1, pp. 32-41, 2013.
Definition at line 510 of file classify_extract_features.cpp.
int ProgExtractFeatures::facs | ( | int | n | ) |
Function for returning factorial up to n=4.
Definition at line 90 of file classify_extract_features.cpp.
|
delete |
|
delete |
|
virtual |
Read argument.
Reimplemented from XmippProgram.
Definition at line 40 of file classify_extract_features.cpp.
|
virtual |
Main routine.
Reimplemented from XmippProgram.
Definition at line 574 of file classify_extract_features.cpp.
void ProgExtractFeatures::show | ( | ) |
bool ProgExtractFeatures::applyDenoising |
Parameter for turning on denoising
Definition at line 47 of file classify_extract_features.h.
FitPoint* ProgExtractFeatures::fitPoints =nullptr |
Definition at line 130 of file classify_extract_features.h.
FileName ProgExtractFeatures::fnOut |
Filename output root
Definition at line 44 of file classify_extract_features.h.
FileName ProgExtractFeatures::fnSel |
Filename selection file containing the images
Definition at line 41 of file classify_extract_features.h.
MultidimArray<int> ProgExtractFeatures::masks[7] |
Masks for entropy features
Definition at line 127 of file classify_extract_features.h.
int ProgExtractFeatures::NmaskPoints |
Definition at line 131 of file classify_extract_features.h.
MultidimArray<int> ProgExtractFeatures::rampMask |
Definition at line 129 of file classify_extract_features.h.
bool ProgExtractFeatures::useEntropy |
Parameter for using entropy features
Definition at line 50 of file classify_extract_features.h.
bool ProgExtractFeatures::useGranulo |
Parameter for using granulometry-based features
Definition at line 53 of file classify_extract_features.h.
bool ProgExtractFeatures::useHistDist |
Parameter for using histogram distances features
Definition at line 56 of file classify_extract_features.h.
bool ProgExtractFeatures::useLBP |
Parameter for using LBP
Definition at line 59 of file classify_extract_features.h.
bool ProgExtractFeatures::useRamp |
Parameter for ramp
Definition at line 62 of file classify_extract_features.h.
bool ProgExtractFeatures::useVariance |
Parameter for using variance features
Definition at line 65 of file classify_extract_features.h.
bool ProgExtractFeatures::useZernike |
Parameter for using Zernike moments
Definition at line 68 of file classify_extract_features.h.