Xmipp
v3.23.11-Nereus
|
#include <volume_to_pseudoatoms.h>
Public Member Functions | |
void | readParams () |
Read parameters from command line. More... | |
void | show () const |
show parameters More... | |
void | defineParams () |
define parameters More... | |
void | produceSideInfo () |
Prepare side info. More... | |
void | run () |
Run. More... | |
void | placeSeeds (int Nseeds) |
Place seeds. More... | |
void | removeSeeds (int Nseeds) |
Remove seeds. More... | |
void | removeTooCloseSeeds () |
Remove too close seeds. More... | |
double | computeAverage (int k, int i, int j, MultidimArray< double > &V) |
Compute average of a volume. More... | |
void | drawGaussian (double k, double i, double j, MultidimArray< double > &V, double intensity) |
Draw a Gaussian on a volume. More... | |
void | drawApproximation () |
Draw approximation. More... | |
void | extractRegion (int idxGaussian, MultidimArray< double > ®ion, bool extended=false) const |
Extract region around a Gaussian. More... | |
void | insertRegion (const MultidimArray< double > ®ion) |
Insert region. More... | |
double | evaluateRegion (const MultidimArray< double > ®ion) const |
Evaluate region. More... | |
void | optimizeCurrentAtoms () |
Optimize current atoms. More... | |
void | writeResults () |
Write results. 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 | 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 () |
Static Public Member Functions | |
static void * | optimizeCurrentAtomsThread (void *threadArgs) |
Optimize current atoms (thread) More... | |
Public Attributes | |
FileName | fnVol |
Volume to convert. More... | |
FileName | fnOut |
Output volume. More... | |
Mask | mask_prm |
bool | useMask |
double | sigma |
Sigma. More... | |
double | targetError |
Maximum error (as a percentage) More... | |
double | stop |
Stop criterion. More... | |
int | initialSeeds |
Initial seeds. More... | |
double | growSeeds |
Grow seeds. More... | |
bool | allowMovement |
Allow gaussians to move. More... | |
bool | allowIntensity |
Allow gaussians to vary intensity. More... | |
double | intensityFraction |
std::string | intensityColumn |
Column for the intensity (if any) More... | |
double | minDistance |
Mindistance. More... | |
double | penalty |
Penalization. More... | |
int | numThreads |
Number of threads. More... | |
double | sampling |
Sampling rate. More... | |
size_t | Nclosest |
N closest atoms for the distance histogram. More... | |
bool | dontScale |
Don't scale the atom weights at the end. More... | |
bool | binarize |
Binarize. More... | |
double | threshold |
Threshold for the binarization. More... | |
Image< double > | Vin |
Image< double > | Vcurrent |
double | energyDiff |
double | percentageDiff |
double | energyOriginal |
std::vector< PseudoAtom > | atoms |
double | sigma3 |
double | percentil1 |
double | range |
double | smallAtom |
MultidimArray< double > | gaussianTable |
barrier_t | barrier |
int | threadOpCode |
Prog_Convert_Vol2Pseudo_ThreadParams * | threadArgs |
pthread_t * | threadIds |
FourierFilter | Filter |
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 72 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::computeAverage | ( | int | k, |
int | i, | ||
int | j, | ||
MultidimArray< double > & | V | ||
) |
Compute average of a volume.
Definition at line 586 of file volume_to_pseudoatoms.cpp.
|
virtual |
define parameters
Reimplemented from XmippProgram.
Definition at line 111 of file volume_to_pseudoatoms.cpp.
void ProgVolumeToPseudoatoms::drawApproximation | ( | ) |
Draw approximation.
Definition at line 554 of file volume_to_pseudoatoms.cpp.
void ProgVolumeToPseudoatoms::drawGaussian | ( | double | k, |
double | i, | ||
double | j, | ||
MultidimArray< double > & | V, | ||
double | intensity | ||
) |
Draw a Gaussian on a volume.
Definition at line 603 of file volume_to_pseudoatoms.cpp.
double ProgVolumeToPseudoatoms::evaluateRegion | ( | const MultidimArray< double > & | region | ) | const |
Evaluate region.
Definition at line 662 of file volume_to_pseudoatoms.cpp.
void ProgVolumeToPseudoatoms::extractRegion | ( | int | idxGaussian, |
MultidimArray< double > & | region, | ||
bool | extended = false |
||
) | const |
Extract region around a Gaussian.
Definition at line 632 of file volume_to_pseudoatoms.cpp.
void ProgVolumeToPseudoatoms::insertRegion | ( | const MultidimArray< double > & | region | ) |
Insert region.
Definition at line 702 of file volume_to_pseudoatoms.cpp.
void ProgVolumeToPseudoatoms::optimizeCurrentAtoms | ( | ) |
Optimize current atoms.
Definition at line 837 of file volume_to_pseudoatoms.cpp.
|
static |
Optimize current atoms (thread)
Definition at line 713 of file volume_to_pseudoatoms.cpp.
void ProgVolumeToPseudoatoms::placeSeeds | ( | int | Nseeds | ) |
Place seeds.
Definition at line 329 of file volume_to_pseudoatoms.cpp.
void ProgVolumeToPseudoatoms::produceSideInfo | ( | ) |
Prepare side info.
Definition at line 170 of file volume_to_pseudoatoms.cpp.
|
virtual |
Read parameters from command line.
Reimplemented from XmippProgram.
Definition at line 51 of file volume_to_pseudoatoms.cpp.
void ProgVolumeToPseudoatoms::removeSeeds | ( | int | Nseeds | ) |
Remove seeds.
Definition at line 403 of file volume_to_pseudoatoms.cpp.
void ProgVolumeToPseudoatoms::removeTooCloseSeeds | ( | ) |
Remove too close seeds.
Definition at line 489 of file volume_to_pseudoatoms.cpp.
|
virtual |
Run.
Reimplemented from XmippProgram.
Definition at line 966 of file volume_to_pseudoatoms.cpp.
|
virtual |
show parameters
Reimplemented from XmippProgram.
Definition at line 81 of file volume_to_pseudoatoms.cpp.
void ProgVolumeToPseudoatoms::writeResults | ( | ) |
Write results.
Definition at line 885 of file volume_to_pseudoatoms.cpp.
bool ProgVolumeToPseudoatoms::allowIntensity |
Allow gaussians to vary intensity.
Definition at line 106 of file volume_to_pseudoatoms.h.
bool ProgVolumeToPseudoatoms::allowMovement |
Allow gaussians to move.
Definition at line 103 of file volume_to_pseudoatoms.h.
std::vector< PseudoAtom > ProgVolumeToPseudoatoms::atoms |
Definition at line 210 of file volume_to_pseudoatoms.h.
barrier_t ProgVolumeToPseudoatoms::barrier |
Definition at line 228 of file volume_to_pseudoatoms.h.
bool ProgVolumeToPseudoatoms::binarize |
Binarize.
Definition at line 136 of file volume_to_pseudoatoms.h.
bool ProgVolumeToPseudoatoms::dontScale |
Don't scale the atom weights at the end.
Definition at line 133 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::energyDiff |
Definition at line 201 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::energyOriginal |
Definition at line 207 of file volume_to_pseudoatoms.h.
FourierFilter ProgVolumeToPseudoatoms::Filter |
Definition at line 242 of file volume_to_pseudoatoms.h.
FileName ProgVolumeToPseudoatoms::fnOut |
Output volume.
Definition at line 79 of file volume_to_pseudoatoms.h.
FileName ProgVolumeToPseudoatoms::fnVol |
Volume to convert.
Definition at line 76 of file volume_to_pseudoatoms.h.
MultidimArray<double> ProgVolumeToPseudoatoms::gaussianTable |
Definition at line 225 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::growSeeds |
Grow seeds.
Definition at line 100 of file volume_to_pseudoatoms.h.
int ProgVolumeToPseudoatoms::initialSeeds |
Initial seeds.
Definition at line 97 of file volume_to_pseudoatoms.h.
std::string ProgVolumeToPseudoatoms::intensityColumn |
Column for the intensity (if any)
Definition at line 115 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::intensityFraction |
Intensity fraction. In case intensity is not allowed to change, this fraction is multiplied by the intensity range and all atoms will have this intensity value.
Definition at line 112 of file volume_to_pseudoatoms.h.
Mask ProgVolumeToPseudoatoms::mask_prm |
Definition at line 82 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::minDistance |
Mindistance.
Definition at line 118 of file volume_to_pseudoatoms.h.
size_t ProgVolumeToPseudoatoms::Nclosest |
N closest atoms for the distance histogram.
Definition at line 130 of file volume_to_pseudoatoms.h.
int ProgVolumeToPseudoatoms::numThreads |
Number of threads.
Definition at line 124 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::penalty |
Penalization.
Definition at line 121 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::percentageDiff |
Definition at line 204 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::percentil1 |
Definition at line 216 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::range |
Definition at line 219 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::sampling |
Sampling rate.
Definition at line 127 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::sigma |
Sigma.
Definition at line 88 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::sigma3 |
Definition at line 213 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::smallAtom |
Definition at line 222 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::stop |
Stop criterion.
Definition at line 94 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::targetError |
Maximum error (as a percentage)
Definition at line 91 of file volume_to_pseudoatoms.h.
Prog_Convert_Vol2Pseudo_ThreadParams* ProgVolumeToPseudoatoms::threadArgs |
Definition at line 236 of file volume_to_pseudoatoms.h.
pthread_t* ProgVolumeToPseudoatoms::threadIds |
Definition at line 239 of file volume_to_pseudoatoms.h.
int ProgVolumeToPseudoatoms::threadOpCode |
Definition at line 233 of file volume_to_pseudoatoms.h.
double ProgVolumeToPseudoatoms::threshold |
Threshold for the binarization.
Definition at line 139 of file volume_to_pseudoatoms.h.
bool ProgVolumeToPseudoatoms::useMask |
Definition at line 85 of file volume_to_pseudoatoms.h.
Image<double> ProgVolumeToPseudoatoms::Vcurrent |
Definition at line 198 of file volume_to_pseudoatoms.h.
Image<double> ProgVolumeToPseudoatoms::Vin |
Definition at line 195 of file volume_to_pseudoatoms.h.