 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
25 long ntot(0), ntotsel(0), n, nsel;
31 if ( field && field->
mg && field->
mg->
mark ) {
32 cout <<
"Field\tMicrograph\tMarkers\tSelected" << endl;
35 for ( mg = field->
mg; mg; mg = mg->
next ) {
36 for ( mark = mg->
mark; mark; mark = mark->
next ) {
38 if ( mark->
sel ) nsel++;
40 cout << field->
id <<
tab << mg->
id <<
tab << n <<
tab << nsel << endl;
47 if ( rec && rec->
mark ) {
48 cout <<
"Reconstruction\tMarkers\tSelected" << endl;
51 for ( mark = rec->
mark; mark; mark = mark->
next ) {
53 if ( mark->
sel ) nsel++;
55 cout << rec->
id <<
tab << n <<
tab << nsel << endl;
61 cout <<
"Total number of markers: " << ntot <<
tab << ntotsel << endl;
77 for ( i=0; i<100; i++ ) h[i] = 0;
87 for ( mg = field->
mg; mg; mg = mg->
next ) {
89 for ( part = mg->
part; part; part = part->
next ) {
91 for ( mark = mg->
mark; mark; mark = mark->
next ) {
107 for ( part = rec->
part; part; part = part->
next ) {
109 for ( mark = rec->
mark; mark; mark = mark->
next ) {
121 cout <<
"Number\tCount\t%" << endl;
122 for ( i=0; i<100; i++ )
if ( h[i] )
123 cout << i <<
tab << h[i] <<
tab << fixed << setprecision(2) << h[i]*100.0/n << endl;
124 cout <<
"Total" <<
tab << n <<
tab << 100 << endl;
141 for ( i=0; i<100; i++ ) h[i] = 0;
153 for ( mg = field->
mg; mg; mg = mg->
next ) {
157 for ( np=0, part = mg->
part; part; part = part->
next ) np++;
161 for ( i=0, part = mg->
part; part; part = part->
next, i++ ) {
164 for ( mark = mg->
mark; mark; mark = mark->
next ) {
169 pt->
sphere(loc, marker_radius, 2, fill_type, 1);
177 cout << mg->
fpart << endl;
188 for ( part = rec->
part; part; part = part->
next ) {
190 for ( mark = rec->
mark; mark; mark = mark->
next ) {
202 cout <<
"Number\tCount\t%" << endl;
203 for ( i=0; i<100; i++ )
if ( h[i] )
204 cout << i <<
tab << h[i] <<
tab << fixed << setprecision(2) << h[i]*100.0/n << endl;
205 cout <<
"Total" <<
tab << n <<
tab << 100 << endl;
double distance(const Vector3 &v)
long project_marker_in_particle(Bproject *project)
Enumerates markers within particles.
long project_marker_lists(Bproject *project)
Lists micrograph markers.
int write_img(const char *filename, Bimage *p, int compression)
General driver function to write multiple image formats.
General image parameter class.
Utilities for timing functions.
int replace(Bimage *img)
Replaces the data with that from the given image.
Header file for general utilities.
ostream & tab(ostream &out)
long project_marker_in_particle_image(Bproject *project, double marker_radius)
Enumerates markers within particles.
Header file for 2D and 3D image I/O.
Header file for micrograph marker functions.
int sphere(Vector3< double > center, double radius, double width=0, int fill_type=0, double fill=0)
Fills a sphere within an image with a uniform value.