5 <a HREF="index.html"> <IMG SRC="rsl.gif"> </a>
9 <h1>RSL_get_histogram_from_...</h1>
14 <b>#include "rsl.h"</b><br>
15 <b><a href=RSL_histogram_struct.html>Histogram</a> *RSL_get_histogram_from_ray(<a href=RSL_ray_struct.html>Ray</a> *ray, Histogram *histogram, int low, int hi, int min_range, int max_range);<br>
16 <a href=RSL_histogram_struct.html>Histogram</a> *RSL_get_histogram_from_sweep(<a href=RSL_sweep_struct.html>Sweep</a> *sweep, Histogram *histogram, int low, int hi, int min_range, int max_range);<br>
17 <a href=RSL_histogram_struct.html>Histogram</a> *RSL_get_histogram_from_volume(<a href=RSL_volume_struct.html>Volume</a> *volume, Histogram *histogram, int low, int hi, int min_range, int max_range); </b>
21 Load <i>histogram</i> with the histogram from a <b>Ray</b>, <b>Sweep</b>, or <b>Volume</b>. If histogram is NULL, then space is automatically allocated by <a href=RSL_allocate_histogram.html>RSL_allocate_histogram</a>. Notice that a histogram pointer is passed into the routines. The argument <i>histogram</i> is used as an accumulator. For instance, getting the histogram for an entire sweep involves getting the histogram for ray #1, then adding the histograms for ray #2 through #n. Although, the argument <i>histogram</i> is modified, a pointer to that histogram is returned so that the function interface, that is commonly used throughout the RSL, is maintained.
25 Upon successful completion, a pointer to <b>Histogram</b> is returned. NULL is returned if an error occurs and <i>errno</i> is set.
29 <a href=RSL_read_histogram.html>RSL_read_histogram</a>, <a href=RSL_write_histogram.html>RSL_write_histogram</a>, <a href=RSL_print_histogram.html>RSL_print_histogram</a>, <a href=RSL_free_histogram.html>RSL_free_histogram</a>
32 <p>Author: <a href=david.wolff.html>David B. Wolff</a>