Classes | Typedefs | Functions

OpenTissue::volume_rendering Namespace Reference

Classes

class  RayCastShader
class  SlabbingShader
class  Render
class  Texture3DTile
class  TileRender
class  VolumeShader

Typedefs

typedef
OpenTissue::image::Image
< unsigned char > 
color_table_type
typedef boost::shared_ptr
< color_table_type
color_table_pointer

Functions

template<typename histogram_type , typename image_type >
void compute_histogram_color_table (unsigned int entries, histogram_type const &histogram, image_type &color_table)
template<typename image_type >
void compute_linear_color_table (unsigned int entries, image_type &color_table, bool reverse=false, bool transparency=false)
template<typename image_type >
void compute_noise_color_table (unsigned int entries, image_type &color_table)
template<typename image_type >
OpenTissue::texture::texture2D_pointer compute_1D_preintegration_color_table (image_type const &color_table)

Typedef Documentation

typedef OpenTissue::image::Image<unsigned char> OpenTissue::volume_rendering::color_table_type

Convinience Types. These types make it easy to create color tables in applications.


Function Documentation

template<typename image_type >
OpenTissue::texture::texture2D_pointer OpenTissue::volume_rendering::compute_1D_preintegration_color_table ( image_type const &  color_table  ) 

Compute Preintegrated Color Table.

Parameters:
color_table The color table that should be integrated.
Returns:
A pointer to a preintegrated color table texture object.
template<typename histogram_type , typename image_type >
void OpenTissue::volume_rendering::compute_histogram_color_table ( unsigned int  entries,
histogram_type const &  histogram,
image_type &  color_table 
)

Histogram Based Color Table. This function analyses a histogram and assign colors to a color table based on the features detected in the histogram.

template<typename image_type >
void OpenTissue::volume_rendering::compute_linear_color_table ( unsigned int  entries,
image_type &  color_table,
bool  reverse = false,
bool  transparency = false 
)

Linear Color Mapping.

Parameters:
entries The number of entries on the color table.
color_table Upon return this argument holds the newly generated color table as an 1 row image with entries pixels in it.
reverse If set to true (default false) low image intensities are mapped to high colors.
transparency If set to trur the alpha channel in the color table is also lineary scaled. Default is false.
template<typename image_type >
void OpenTissue::volume_rendering::compute_noise_color_table ( unsigned int  entries,
image_type &  color_table 
)

Smooth Noise Color Mapping.

Parameters:
entries The number of entries on the color table.
color_table Upon return this argument holds the newly generated color table as an 1 row image with entries pixels in it.