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

histogram.c File Reference

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

Include dependency graph for histogram.c:

Include dependency graph

Go to the source code of this file.

Functions

public void initialize_histogram (histogram_struct *histogram, Real delta, Real offset)
public void delete_histogram (histogram_struct *histogram)
private int get_histogram_index (histogram_struct *histogram, Real value)
private Real convert_real_index_to_value (histogram_struct *histogram, Real ind)
private Real convert_index_to_value (histogram_struct *histogram, int ind)
public void add_to_histogram (histogram_struct *histogram, Real value)
private void get_histogram_range (histogram_struct *histogram, Real *min_value, Real *max_value)
private int get_histogram_max_count (histogram_struct *histogram)
private void box_filter_histogram (int n, Real counts[], Real new_counts[], int half_width)
public int get_histogram_counts (histogram_struct *histogram, Real *counts[], Real filter_width, Real *scale_factor, Real *trans_factor)
private void resample_histogram (histogram_struct *histogram, int x_size, int y_size, Real *x_scale, Real *x_trans, Real height[])
public void display_histogram (histogram_struct *histogram, int x_size, int y_size)
public void create_histogram_line (histogram_struct *histogram, int x_size, int y_size, Real filter_width, lines_struct *lines)


Function Documentation

public void add_to_histogram histogram_struct histogram,
Real  value
 

Definition at line 156 of file histogram.c.

References histogram_struct::counts, get_histogram_index(), histogram_struct::max_index, and histogram_struct::min_index.

private void box_filter_histogram int  n,
Real  counts[],
Real  new_counts[],
int  half_width
 

Definition at line 273 of file histogram.c.

Referenced by create_histogram_line(), and get_histogram_counts().

private Real convert_index_to_value histogram_struct histogram,
int  ind
 

Definition at line 133 of file histogram.c.

References convert_real_index_to_value().

Referenced by get_histogram_range(), and resample_histogram().

private Real convert_real_index_to_value histogram_struct histogram,
Real  ind
 

Definition at line 111 of file histogram.c.

References histogram_struct::delta, and histogram_struct::offset.

Referenced by convert_index_to_value(), and get_histogram_counts().

public void create_histogram_line histogram_struct histogram,
int  x_size,
int  y_size,
Real  filter_width,
lines_struct lines
 

Definition at line 492 of file histogram.c.

References add_point_to_line(), box_filter_histogram(), initialize_lines(), resample_histogram(), and WHITE.

public void delete_histogram histogram_struct histogram  ) 
 

Definition at line 62 of file histogram.c.

References histogram_struct::counts, histogram_struct::max_index, and histogram_struct::min_index.

public void display_histogram histogram_struct histogram,
int  x_size,
int  y_size
 

Definition at line 442 of file histogram.c.

References get_histogram_max_count(), get_histogram_range(), resample_histogram(), and y.

public int get_histogram_counts histogram_struct histogram,
Real *  counts[],
Real  filter_width,
Real *  scale_factor,
Real *  trans_factor
 

Definition at line 320 of file histogram.c.

References box_filter_histogram(), convert_real_index_to_value(), histogram_struct::counts, histogram_struct::delta, histogram_struct::max_index, and histogram_struct::min_index.

private int get_histogram_index histogram_struct histogram,
Real  value
 

Definition at line 86 of file histogram.c.

References histogram_struct::delta, and histogram_struct::offset.

Referenced by add_to_histogram(), and resample_histogram().

private int get_histogram_max_count histogram_struct histogram  ) 
 

Definition at line 240 of file histogram.c.

References histogram_struct::counts, histogram_struct::max_index, and histogram_struct::min_index.

Referenced by display_histogram(), and resample_histogram().

private void get_histogram_range histogram_struct histogram,
Real *  min_value,
Real *  max_value
 

Definition at line 218 of file histogram.c.

References convert_index_to_value(), histogram_struct::max_index, and histogram_struct::min_index.

Referenced by display_histogram(), and resample_histogram().

public void initialize_histogram histogram_struct histogram,
Real  delta,
Real  offset
 

Definition at line 37 of file histogram.c.

References histogram_struct::delta, histogram_struct::max_index, histogram_struct::min_index, and histogram_struct::offset.

private void resample_histogram histogram_struct histogram,
int  x_size,
int  y_size,
Real *  x_scale,
Real *  x_trans,
Real  height[]
 

Definition at line 372 of file histogram.c.

References convert_index_to_value(), histogram_struct::counts, get_histogram_index(), get_histogram_max_count(), get_histogram_range(), and histogram_struct::min_index.

Referenced by create_histogram_line(), and display_histogram().


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