Xmipp
v3.23.11-Nereus
|
#include <volume_segment.h>
Public Member Functions | |
void | readParams () |
Read arguments. More... | |
void | show () const |
Show. More... | |
void | defineParams () |
Define parameters. More... | |
void | produce_side_info () |
void | segment (Image< double > &mask) |
void | run () |
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 () |
Public Attributes | |
FileName | fn_vol |
Input volume. More... | |
String | method |
Segmentation method. More... | |
double | voxel_mass |
double | dalton_mass |
Desired mass (in Daltons). Not necessary if voxel_mass is provided. More... | |
double | aa_mass |
Desired mass (in aminoacids). Not necessary if voxel_mass is provided. More... | |
double | sampling_rate |
Sampling rate (in A/pixel). Not necessary if voxel_mass is provided. More... | |
FileName | fn_mask |
Output mask. If not given it is not written. More... | |
bool | en_threshold |
Enable a single threshold measure. More... | |
double | threshold |
Threshold. More... | |
bool | otsu |
Use Otse. More... | |
bool | do_prob |
From here on by Sjors. More... | |
int | wang_radius |
radius for B.C. Wang-like smoothing procedure More... | |
Image< double > | V |
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 |
Segment parameters.
Definition at line 37 of file volume_segment.h.
|
virtual |
Define parameters.
Reimplemented from XmippProgram.
Definition at line 90 of file volume_segment.cpp.
void ProgVolumeSegment::produce_side_info | ( | ) |
Produce side info. Read the input volume, and compute the number of voxels if not given. An exception is thrown if no way is given to compute the voxel mass
Definition at line 108 of file volume_segment.cpp.
|
virtual |
Read arguments.
Reimplemented from XmippProgram.
Definition at line 32 of file volume_segment.cpp.
|
virtual |
void ProgVolumeSegment::segment | ( | Image< double > & | mask | ) |
Really compute the mask. If a mask name is given then it is written to disk.
Definition at line 293 of file volume_segment.cpp.
|
virtual |
Show.
Reimplemented from XmippProgram.
Definition at line 72 of file volume_segment.cpp.
double ProgVolumeSegment::aa_mass |
Desired mass (in aminoacids). Not necessary if voxel_mass is provided.
Definition at line 50 of file volume_segment.h.
double ProgVolumeSegment::dalton_mass |
Desired mass (in Daltons). Not necessary if voxel_mass is provided.
Definition at line 48 of file volume_segment.h.
bool ProgVolumeSegment::do_prob |
From here on by Sjors.
Definition at line 64 of file volume_segment.h.
bool ProgVolumeSegment::en_threshold |
Enable a single threshold measure.
Definition at line 56 of file volume_segment.h.
FileName ProgVolumeSegment::fn_mask |
Output mask. If not given it is not written.
Definition at line 54 of file volume_segment.h.
FileName ProgVolumeSegment::fn_vol |
Input volume.
Definition at line 41 of file volume_segment.h.
String ProgVolumeSegment::method |
Segmentation method.
Definition at line 43 of file volume_segment.h.
bool ProgVolumeSegment::otsu |
Use Otse.
Definition at line 60 of file volume_segment.h.
double ProgVolumeSegment::sampling_rate |
Sampling rate (in A/pixel). Not necessary if voxel_mass is provided.
Definition at line 52 of file volume_segment.h.
double ProgVolumeSegment::threshold |
Threshold.
Definition at line 58 of file volume_segment.h.
Image<double> ProgVolumeSegment::V |
Definition at line 70 of file volume_segment.h.
double ProgVolumeSegment::voxel_mass |
Desired mass (in voxels), if not given computed from the mass and the sampling rate by produce_info.
Definition at line 46 of file volume_segment.h.
int ProgVolumeSegment::wang_radius |
radius for B.C. Wang-like smoothing procedure
Definition at line 66 of file volume_segment.h.