|
Bsoft
1.9
Bernard's software package
|
Functions to calculate statistics on image regions. More...
#include "rwimg.h"#include "matrix_linear.h"#include "Complex.h"#include "Vector3.h"#include "utilities.h"Go to the source code of this file.
Functions | |
| int | img_stats_within_radii (Bimage *p, double rad_min, double rad_max) |
| Calculates the statistics for an image with given radii. More... | |
| int | img_stats_in_box (Bimage *p, int img_num, Vector3< int > start, Vector3< int > end, int type, double &avg, double &std) |
| Calculates the statistics for an image within the given box. More... | |
| double | vector3_inside_outside (Vector3< float > vec, int ndim, int nvert, Vector3< float > *poly) |
| int | img_stats_in_poly (Bimage *p, int img_num, int nvert, Vector3< float > *poly, double &avg, double &std) |
| Calculates the statistics for an image within the given polyhedron. More... | |
| int | img_calculate_masked_statistics (Bimage *p, Bimage *pmask) |
| Calculates the statistics for an image for each level in a mask. More... | |
Variables | |
| int | verbose |
Functions to calculate statistics on image regions.
Definition in file img_region_stats.cpp.
Calculates the statistics for an image for each level in a mask.
| *p | image. |
| *pmask | mask with two or more levels |
Definition at line 331 of file img_region_stats.cpp.
| int img_stats_in_box | ( | Bimage * | p, |
| int | img_num, | ||
| Vector3< int > | start, | ||
| Vector3< int > | end, | ||
| int | type, | ||
| double & | avg, | ||
| double & | std | ||
| ) |
Calculates the statistics for an image within the given box.
| *p | image. |
| img_num | sub-image number. |
| start | starting coordinates. |
| end | ending coordinates. |
| type | type of selection: 1=rectangle, 2=ellipse. |
| &avg | return value for the average. |
| &std | return value for the standard deviation. |
If a voxel lies within the specified box, it is included in the statistical calculations.
Definition at line 121 of file img_region_stats.cpp.
| int img_stats_in_poly | ( | Bimage * | p, |
| int | img_num, | ||
| int | nvert, | ||
| Vector3< float > * | poly, | ||
| double & | avg, | ||
| double & | std | ||
| ) |
Calculates the statistics for an image within the given polyhedron.
If a voxel lies within the specified polyhedron, it is included in the statistical calculations.
| *p | image. |
| img_num | sub-image number; |
| nvert | number of polygon vertices. |
| *poly | array of polygon vertices. |
| &avg | return value for the average. |
| &std | return value for the standard deviation. |
Definition at line 260 of file img_region_stats.cpp.
| int img_stats_within_radii | ( | Bimage * | p, |
| double | rad_min, | ||
| double | rad_max | ||
| ) |
Calculates the statistics for an image with given radii.
If a voxel lies within the specified radii, it is included in the statistical calculations.
| *p | image. |
| rad_min | minimum radius (pixel units). |
| rad_max | maximum radius (pixel units). |
Definition at line 29 of file img_region_stats.cpp.
| double vector3_inside_outside | ( | Vector3< float > | vec, |
| int | ndim, | ||
| int | nvert, | ||
| Vector3< float > * | poly | ||
| ) |
Definition at line 225 of file img_region_stats.cpp.
| int verbose |