| Bsoft 2.0.5 Bernard's software package

model_mask.h
Go to the documentation of this file.
1
9 #include "rwimg.h"
10 #include "rwmodel.h"
11
12 // Function prototypes
13 Bimage* model_create_mask(Bmodel* model, Vector3<long> size,
14 Vector3<double> origin, Vector3<double> sam, double edge);
15 Bimage* model_create_hull_mask(Bmodel* model, Vector3<long> size,
16 Vector3<double> origin, Vector3<double> sam, int curv_flag, int fast);
17 Bimage* model_create_shell_mask(Bmodel* model, Vector3<long> size,
18 Vector3<double> origin, Vector3<double> sam, double shell_width, int curv_flag, int fast);
19 Bimage* model_create_level_mask(Bmodel* model, Vector3<long> size,
20 Vector3<double> origin, Vector3<double> sam);
21 Bimage* img_extract_segments_using_model(Bimage* p, Bmodel* model, int multi_level);
22 int img_add_model_to_mask(Bimage* p, Bmodel* model);
23 Bmodel* model_from_multilevel_mask(Bimage* p);
24
model_from_multilevel_mask
Bmodel * model_from_multilevel_mask(Bimage *p)
Generates components at the center of mass of each mask level.
Definition: model_mask.cpp:452
img_extract_segments_using_model
Bimage * img_extract_segments_using_model(Bimage *p, Bmodel *model, int multi_level)
Extracts segmentss from a multi-level mask around points defined by a model.
Definition: model_mask.cpp:334
model_create_shell_mask
Bimage * model_create_shell_mask(Bmodel *model, Vector3< long > size, Vector3< double > origin, Vector3< double > sam, double shell_width, int curv_flag, int fast)
Calculates a shell mask covering a model structure.
Definition: model_mask.cpp:191
model_create_mask
Bimage * model_create_mask(Bmodel *model, Vector3< long > size, Vector3< double > origin, Vector3< double > sam, double edge)
Calculates a mask of the components and links of a model structure.
Definition: model_mask.cpp:34
Bimage
General image parameter class.
Definition: Bimage.h:163
model_create_hull_mask
Bimage * model_create_hull_mask(Bmodel *model, Vector3< long > size, Vector3< double > origin, Vector3< double > sam, int curv_flag, int fast)
Calculates a mask based on the periphery of a model structure.
Definition: model_mask.cpp:103
model
Bmodel * model
Definition: bshow.cpp:32
rwmodel.h
Header file for reading and writing atomic model files.
Vector3< long >
model_create_level_mask
Bimage * model_create_level_mask(Bmodel *model, Vector3< long > size, Vector3< double > origin, Vector3< double > sam)
Calculates a mask with one level per model.
Definition: model_mask.cpp:285
Bmodel
Definition: rwmodel.h:119
rwimg.h
Header file for 2D and 3D image I/O.
img_add_model_to_mask
int img_add_model_to_mask(Bimage *p, Bmodel *model)
Adds to the mask the component locations.
Definition: model_mask.cpp:405