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

fill_volume.c File Reference

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

Include dependency graph for fill_volume.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  xyz_struct

Functions

public BOOLEAN fill_connected_voxels (Volume volume, Volume label_volume, Neighbour_types connectivity, int voxel[], int min_label_threshold, int max_label_threshold, int desired_label, Real min_threshold, Real max_threshold, int range_changed[2][N_DIMENSIONS])
public int get_neighbour_directions (Neighbour_types connectivity, int *dx[], int *dy[])
private void create_3D_neighbours (void)
public int get_3D_neighbour_directions (Neighbour_types connectivity, int *dx[], int *dy[], int *dz[])
public BOOLEAN should_change_this_one (Volume volume, Volume label_volume, int voxel[], Real min_threshold, Real max_threshold, int label_min_threshold, int label_max_threshold, int desired_label)

Variables

private int Dx4 [4] = { 1, 0, -1, 0 }
private int Dy4 [4] = { 0, 1, 0, -1 }
private int Dx8 [8] = { 1, 1, 0, -1, -1, -1, 0, 1 }
private int Dy8 [8] = { 0, 1, 1, 1, 0, -1, -1, -1 }
private int Dx6 [6] = { 1, 0, 0, -1, 0, 0 }
private int Dy6 [6] = { 0, 1, 0, 0, -1, 0 }
private int Dz6 [6] = { 0, 0, 1, 0, 0, -1 }
private int Dx26 [26]
private int Dy26 [26]
private int Dz26 [26]


Function Documentation

private void create_3D_neighbours void   ) 
 

Definition at line 228 of file fill_volume.c.

References Dx26, Dy26, Dz26, and y.

Referenced by get_3D_neighbour_directions().

public BOOLEAN fill_connected_voxels Volume  volume,
Volume  label_volume,
Neighbour_types  connectivity,
int  voxel[],
int  min_label_threshold,
int  max_label_threshold,
int  desired_label,
Real  min_threshold,
Real  max_threshold,
int  range_changed[2][N_DIMENSIONS]
 

Definition at line 48 of file fill_volume.c.

References create_bitlist_3d(), delete_bitlist_3d(), DELETE_QUEUE, FALSE, get_3D_neighbour_directions(), get_bitlist_bit_3d(), INITIALIZE_QUEUE, INSERT_IN_QUEUE, IS_QUEUE_EMPTY, n_dirs, QUEUE_STRUCT, REMOVE_FROM_QUEUE, set_bitlist_bit_3d(), set_volume_label_data(), should_change_this_one(), TRUE, xyz_struct::x, xyz_struct::y, y, and xyz_struct::z.

public int get_3D_neighbour_directions Neighbour_types  connectivity,
int *  dx[],
int *  dy[],
int *  dz[]
 

Definition at line 267 of file fill_volume.c.

References create_3D_neighbours(), Dx26, Dx6, Dy26, Dy6, Dz26, Dz6, EIGHT_NEIGHBOURS, FALSE, FOUR_NEIGHBOURS, n_dirs, and TRUE.

Referenced by dilate_voxels_3d(), and fill_connected_voxels().

public int get_neighbour_directions Neighbour_types  connectivity,
int *  dx[],
int *  dy[]
 

Definition at line 182 of file fill_volume.c.

References Dx4, Dx8, Dy4, Dy8, EIGHT_NEIGHBOURS, FOUR_NEIGHBOURS, and n_dirs.

public BOOLEAN should_change_this_one Volume  volume,
Volume  label_volume,
int  voxel[],
Real  min_threshold,
Real  max_threshold,
int  label_min_threshold,
int  label_max_threshold,
int  desired_label
 

Definition at line 322 of file fill_volume.c.

References FALSE, get_volume_label_data(), and TRUE.

Referenced by fill_connected_voxels().


Variable Documentation

private int Dx26[26]
 

Definition at line 211 of file fill_volume.c.

Referenced by create_3D_neighbours(), and get_3D_neighbour_directions().

private int Dx4[4] = { 1, 0, -1, 0 }
 

Definition at line 162 of file fill_volume.c.

Referenced by get_neighbour_directions().

private int Dx6[6] = { 1, 0, 0, -1, 0, 0 }
 

Definition at line 207 of file fill_volume.c.

Referenced by get_3D_neighbour_directions().

private int Dx8[8] = { 1, 1, 0, -1, -1, -1, 0, 1 }
 

Definition at line 165 of file fill_volume.c.

Referenced by get_neighbour_directions().

private int Dy26[26]
 

Definition at line 212 of file fill_volume.c.

Referenced by create_3D_neighbours(), and get_3D_neighbour_directions().

private int Dy4[4] = { 0, 1, 0, -1 }
 

Definition at line 163 of file fill_volume.c.

Referenced by get_neighbour_directions().

private int Dy6[6] = { 0, 1, 0, 0, -1, 0 }
 

Definition at line 208 of file fill_volume.c.

Referenced by get_3D_neighbour_directions().

private int Dy8[8] = { 0, 1, 1, 1, 0, -1, -1, -1 }
 

Definition at line 166 of file fill_volume.c.

Referenced by get_neighbour_directions().

private int Dz26[26]
 

Definition at line 213 of file fill_volume.c.

Referenced by create_3D_neighbours(), and get_3D_neighbour_directions().

private int Dz6[6] = { 0, 0, 1, 0, 0, -1 }
 

Definition at line 209 of file fill_volume.c.

Referenced by get_3D_neighbour_directions().


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