| Bsoft 1.9 Bernard's software package

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
img_segment.h
Go to the documentation of this file.
1
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11 #include <ctype.h>
12 #include <unistd.h>
13 #include <math.h>
14 #include <time.h>
15 #include "rwimg.h"
16 #include "marker.h"
17
18 // Function prototypes
19 int img_blobs(Bimage* p, float threshold, float min_size, float max_size, float setvalue, int sign);
20 float img_find_threshold(Bimage* p, int img_num, double mol_weight, float rho);
21 float img_mass_at_threshold(Bimage* p, int img_num, float threshold, float rho);
22 int img_internal_volume(Bimage* p, float threshold, int mask_out_freq);
23 int img_segment_threshold_series(Bimage* p, float threshold_first,
24 float threshold_last, float threshold_step);
25 Bimage* img_flood_fill(Bimage* p, Bimage* pfeature, float threshold_hi,
26 float threshold_lo, float threshold_step, int fill_borders);
27 Bimage* img_flood_peaks(Bimage* p, int kernel_size, float threshold);
28 int img_set_second_mask(Bimage* p, Bimage* pmask, float threshold);
29 int img_check_neighbors(Bimage* p, unsigned long index);
30 long img_find_highest_in_kernel(Bimage* p, unsigned long index, int size);
31 Bimage* img_excise_feature(Bimage* p, Bimage* pfeature, Bmarker* markers);
32 Bimage* img_excise_all_features(Bimage* p, Bimage* pfeature);
33
img_mass_at_threshold
float img_mass_at_threshold(Bimage *p, int img_num, float threshold, float rho)
Calculates the mass from the density threshold.
Definition: img_segment.cpp:222
img_segment_threshold_series
int img_segment_threshold_series(Bimage *p, float threshold_first, float threshold_last, float threshold_step)
Segments a map through a series of thresholds and reports results.
Definition: img_segment.cpp:382
Bmarker
Definition: marker.h:21
img_excise_feature
Bimage * img_excise_feature(Bimage *p, Bimage *pfeature, Bmarker *markers)
Finds the density around a voxel associated with a particular feature.
Definition: img_segment.cpp:850
img_internal_volume
int img_internal_volume(Bimage *p, float threshold, int mask_out_freq)
Finds the density threshold associated with a particular molecular weight.
Definition: img_segment.cpp:264
img_blobs
int img_blobs(Bimage *p, float threshold, float min_size, float max_size, float setvalue, int sign)
Identifies contiguous regions above a given threshold (blobs) and eliminate those less than a minimum...
Definition: img_segment.cpp:37
img_check_neighbors
int img_check_neighbors(Bimage *p, unsigned long index)
Check neighbors in feature map and assign a value if a neighbor is assigned.
Definition: img_segment.cpp:731
Bimage
General image parameter class.
Definition: Bimage.h:153
img_flood_fill
Bimage * img_flood_fill(Bimage *p, Bimage *pfeature, float threshold_hi, float threshold_lo, float threshold_step, int fill_borders)
Creates and expands a feature map from a starting to ending threshold value.
Definition: img_segment.cpp:439
img_excise_all_features
Bimage * img_excise_all_features(Bimage *p, Bimage *pfeature)
Extracts all the features associated with a multi-level mask.
Definition: img_segment.cpp:944
img_find_threshold
float img_find_threshold(Bimage *p, int img_num, double mol_weight, float rho)
Finds the density threshold associated with a particular molecular weight.
Definition: img_segment.cpp:127
img_find_highest_in_kernel
long img_find_highest_in_kernel(Bimage *p, unsigned long index, int size)
Finds the highest value in a kernel excluding the central voxel.
Definition: img_segment.cpp:796
img_flood_peaks
Bimage * img_flood_peaks(Bimage *p, int kernel_size, float threshold)
Generates a segmented image from peaks above a threshold value.
Definition: img_segment.cpp:612
rwimg.h
Header file for 2D and 3D image I/O.
img_set_second_mask
int img_set_second_mask(Bimage *p, Bimage *pmask, float threshold)
A second level mask is added to a primary mask based on a threshold.
Definition: img_segment.cpp:701
marker.h
Header file for image parameter functions.