Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

search_utils.c File Reference

#include <volume_io/internal_volume_io.h>
#include <bicpl/deform.h>

Include dependency graph for search_utils.c:

Include dependency graph

Go to the source code of this file.

Functions

public BOOLEAN is_point_inside_surface (Volume volume, Volume label_volume, int continuity, Real voxel[], Vector *direction, boundary_definition_struct *boundary_def)
public void get_centre_of_cube (Point *cube, int sizes[3], Point *centre)
public BOOLEAN contains_value (Real values[2][2][2], int sizes[3])
public BOOLEAN cube_is_small_enough (Point cube[2], int sizes[3], Real min_cube_size)
public void initialize_deform_stats (deform_stats *stats)
public void record_error_in_deform_stats (deform_stats *stats, Real error)
public void print_deform_stats (deform_stats *stats, int n_points)
public BOOLEAN get_max_point_cube_distance (Point cube[2], int sizes[3], Point *point, Real *distance)
public void initialize_deformation_parameters (deform_struct *deform)
public void delete_deformation_parameters (deform_struct *deform)
public void set_boundary_definition (boundary_definition_struct *boundary_def, Real min_value, Real max_value, Real grad_threshold, Real angle, char direction, Real tolerance)
public void initialize_lookup_volume_coeficients (voxel_coef_struct *lookup)
public void lookup_volume_coeficients (voxel_coef_struct *lookup, Volume volume, int degrees_continuity, int x, int y, int z, Real c[])
public void delete_lookup_volume_coeficients (voxel_coef_struct *lookup)


Function Documentation

public BOOLEAN contains_value Real  values[2][2][2],
int  sizes[3]
 

Definition at line 84 of file search_utils.c.

References FALSE, TRUE, and y.

public BOOLEAN cube_is_small_enough Point  cube[2],
int  sizes[3],
Real  min_cube_size
 

Definition at line 125 of file search_utils.c.

References FALSE, and TRUE.

public void delete_deformation_parameters deform_struct deform  ) 
 

Definition at line 269 of file search_utils.c.

References deform_struct::deformation_model, delete_deformation_model(), deform_struct::n_movements_alloced, and deform_struct::prev_movements.

public void delete_lookup_volume_coeficients voxel_coef_struct lookup  ) 
 

Definition at line 408 of file search_utils.c.

References delete_hash_table(), lookup(), and voxel_lin_coef_struct::next.

public void get_centre_of_cube Point *  cube,
int  sizes[3],
Point *  centre
 

Definition at line 66 of file search_utils.c.

public BOOLEAN get_max_point_cube_distance Point  cube[2],
int  sizes[3],
Point *  point,
Real *  distance
 

Definition at line 209 of file search_utils.c.

References FALSE, and TRUE.

public void initialize_deform_stats deform_stats stats  ) 
 

Definition at line 150 of file search_utils.c.

References deform_stats::average, deform_stats::maximum, deform_stats::n_below, and N_DEFORM_HISTOGRAM.

Referenced by one_iteration_lines().

public void initialize_deformation_parameters deform_struct deform  ) 
 

Definition at line 245 of file search_utils.c.

References deform_struct::boundary_definition, deform_struct::deform_data, deform_struct::deformation_model, deform_struct::degrees_continuity, FALSE, deform_struct::fractional_step, boundary_definition_struct::gradient_threshold, initialize_deformation_model(), boundary_definition_struct::max_dot_product, boundary_definition_struct::max_isovalue, deform_struct::max_iterations, deform_struct::max_step, boundary_definition_struct::min_dot_product, boundary_definition_struct::min_isovalue, deform_struct::movement_threshold, deform_struct::n_movements_alloced, boundary_definition_struct::normal_direction, deformation_model_struct::position_constrained, deform_struct::stop_threshold, TOWARDS_LOWER, deform_data_struct::type, and VOLUME_DATA.

public void initialize_lookup_volume_coeficients voxel_coef_struct lookup  ) 
 

Definition at line 319 of file search_utils.c.

References lookup().

public BOOLEAN is_point_inside_surface Volume  volume,
Volume  label_volume,
int  continuity,
Real  voxel[],
Vector *  direction,
boundary_definition_struct boundary_def
 

Definition at line 4 of file search_utils.c.

References FALSE, get_volume_voxel_activity(), boundary_definition_struct::gradient_threshold, boundary_definition_struct::max_dot_product, boundary_definition_struct::max_isovalue, boundary_definition_struct::min_dot_product, boundary_definition_struct::min_isovalue, and TRUE.

Referenced by check_voxel_for_boundary(), and find_boundary_in_direction().

public void lookup_volume_coeficients voxel_coef_struct lookup,
Volume  volume,
int  degrees_continuity,
int  x,
int  y,
int  z,
Real  c[]
 

Definition at line 325 of file search_utils.c.

References initialize_hash_table(), insert_in_hash_table(), lookup(), lookup_in_hash_table(), MAX_IN_VOXEL_COEF_LOOKUP, hash2_entry_struct::next, remove_from_hash_table(), and y.

Referenced by check_voxel_for_boundary(), and check_voxel_for_isovalue().

public void print_deform_stats deform_stats stats,
int  n_points
 

Definition at line 180 of file search_utils.c.

References deform_stats::average, deform_stats::maximum, deform_stats::n_below, and N_DEFORM_HISTOGRAM.

Referenced by one_iteration_lines().

public void record_error_in_deform_stats deform_stats stats,
Real  error
 

Definition at line 162 of file search_utils.c.

References deform_stats::average, deform_stats::maximum, deform_stats::n_below, and N_DEFORM_HISTOGRAM.

Referenced by perturb_line_points().

public void set_boundary_definition boundary_definition_struct boundary_def,
Real  min_value,
Real  max_value,
Real  grad_threshold,
Real  angle,
char  direction,
Real  tolerance
 

Definition at line 278 of file search_utils.c.

References ANY_DIRECTION, boundary_definition_struct::gradient_threshold, boundary_definition_struct::max_dot_product, boundary_definition_struct::max_isovalue, boundary_definition_struct::min_dot_product, boundary_definition_struct::min_isovalue, boundary_definition_struct::normal_direction, boundary_definition_struct::tolerance, TOWARDS_HIGHER, and TOWARDS_LOWER.


Generated on Wed Jul 28 09:11:19 2004 for BICPL by doxygen 1.3.7