#include <tomoseg.h>
Definition at line 55 of file tomoseg.h.
◆ TomoSeg()
EMAN::TomoSeg::TomoSeg |
( |
| ) |
|
|
inline |
◆ check_neighbors()
int TomoSeg::check_neighbors |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
◆ generate_objects()
int TomoSeg::generate_objects |
( |
int |
numo, |
|
|
float |
maxdist, |
|
|
int |
nowslice |
|
) |
| |
Definition at line 145 of file tomoseg.cpp.
147 printf(
"No map input.\n");
153 rank->process_inplace(
"morph.object.density",
Dict(
"thresh",0,
"more_neighbor",
true));
154 int nx=rank->get_xsize();
155 int ny=rank->get_ysize();
158 for (
int i=0; i<numo; i++){
159 float max=rank->get_attr(
"maximum");
165 for (
int x=0;
x<nx;
x++){
166 for (
int y=0;
y<ny;
y++){
167 if (rank->get_value_at(
x,
y)==max){
172 if (nb>2) branch=
true;
174 rank->set_value_at_fast(
x,
y,0);
179 if(
verb) printf(
"id=%d, size=%d",
int(curid),
int(pts.size()));
181 if (
verb) printf(
"\n\thave branch, throw out.\n");
185 if (
verb) printf(
" \t%d points\n",
objs.back().get_size() );
Dict is a dictionary to store <string, EMObject> pair.
EMData stores an image's data and defines core image processing routines.
int check_neighbors(int x, int y)
vector< TomoObject > objs
References check_neighbors(), objs, skelmap, verb, x, and y.
◆ read_bwmap()
int EMAN::TomoSeg::read_bwmap |
( |
EMData * |
map | ) |
|
◆ read_skelmap()
int TomoSeg::read_skelmap |
( |
EMData * |
map | ) |
|
◆ set_verb()
void EMAN::TomoSeg::set_verb |
( |
| ) |
|
|
inline |
◆ write_imod()
void TomoSeg::write_imod |
( |
const char * |
file | ) |
|
Definition at line 194 of file tomoseg.cpp.
195 FILE *fp = fopen(file,
"w");
199 fprintf(fp,
"imod %d\n",(
int)
objs.size());
200 fprintf(fp,
"max %d %d %d\n",nx,ny,nz);
201 for (
int i=0; i<(int)
objs.size(); i++){
202 fprintf(fp,
"object %d 1 0\n",i);
203 objs[i].write_imod(fp);
References objs, and skelmap.
◆ bwmap
◆ objs
◆ skelmap
EMData* EMAN::TomoSeg::skelmap |
|
private |
◆ verb
The documentation for this class was generated from the following files: