Bsoft  1.9
Bernard's software package
 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);
33 
float img_mass_at_threshold(Bimage *p, int img_num, float threshold, float rho)
Calculates the mass from the density threshold.
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: marker.h:21
Bimage * img_excise_feature(Bimage *p, Bimage *pfeature, Bmarker *markers)
Finds the density around a voxel associated with a particular feature.
int img_internal_volume(Bimage *p, float threshold, int mask_out_freq)
Finds the density threshold associated with a particular molecular weight.
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
int img_check_neighbors(Bimage *p, unsigned long index)
Check neighbors in feature map and assign a value if a neighbor is assigned.
General image parameter class.
Definition: Bimage.h:153
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.
Bimage * img_excise_all_features(Bimage *p, Bimage *pfeature)
Extracts all the features associated with a multi-level mask.
float img_find_threshold(Bimage *p, int img_num, double mol_weight, float rho)
Finds the density threshold associated with a particular molecular weight.
long img_find_highest_in_kernel(Bimage *p, unsigned long index, int size)
Finds the highest value in a kernel excluding the central voxel.
Bimage * img_flood_peaks(Bimage *p, int kernel_size, float threshold)
Generates a segmented image from peaks above a threshold value.
Header file for 2D and 3D image I/O.
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.
Header file for image parameter functions.