#include <vuSpectralImage.h>
Collaboration diagram for vuSpectralImage:
Public Member Functions | |
vuSpectralImage () | |
constructor | |
virtual | ~vuSpectralImage () |
destructor | |
const vuColour7a & | get_light () const |
bool | get_xy (int x, int y, vuColour7a &col) const |
get colour from specific point | |
float * | get_xy_data (int x, int y) |
direct read access to the float array at position (x,y) | |
void | get_extents (int &sizx, int &sizy) |
get extents of image | |
bool | init (int sizx, int sizy) |
initialize spectral framebuffer of given size | |
void | set_light (vuColour7a light) |
set a specific light source this source is used to apply post illumination | |
bool | get_rgb (byte *buf, int size) const |
performs post illumination This functions applies the light source given by set_light() and transforms the resulting colors to RGB which is written into the buffer. | |
bool | getRGBImage (vuImage &img) const |
returns a post-illuminated image in img | |
bool | set_xy (int x, int y, const vuColour7a col) |
set spectral color information for a point | |
void | set_mask (bool value=true) |
set mask to value | |
void | create_black_mask () |
create a mask to deactivate all pixels with a zero spectrum | |
Private Attributes | |
vuColour7a | light |
stores the light source | |
vuColour7a * | spix |
pointer to spectral frame buffer | |
bool * | mask |
mask to avoid calculating black points | |
int | maxx |
extents of the framebuffer | |
int | maxy |
extents of the framebuffer |
Is used to apply post-illumination. The reference to vuColour7a is a typecast that stands for the color model used in the currently compiled version.
Definition at line 15 of file vuSpectralImage.h.
|
constructor
Definition at line 8 of file vuSpectralImage.cpp. |
Here is the call graph for this function:
|
destructor
Definition at line 16 of file vuSpectralImage.cpp. |
|
create a mask to deactivate all pixels with a zero spectrum
Definition at line 56 of file vuSpectralImage.cpp. References mask, vuColour< S >::maxComponent(), maxx, and spix. Referenced by ns_vu1112112::vu1112112::render(), and vu1112118::updateSImage(). |
Here is the call graph for this function:
|
get extents of image
Definition at line 102 of file vuSpectralImage.cpp. Referenced by ns_vu1112112::vu1112112::render(). |
|
Definition at line 108 of file vuSpectralImage.cpp. Referenced by ns_vu1112112::vu1112112::shootRays(). |
|
performs post illumination This functions applies the light source given by set_light() and transforms the resulting colors to RGB which is written into the buffer.
Definition at line 63 of file vuSpectralImage.cpp. References byte, vuColour< S >::clampTo01(), vuColourRGBa::from(), light, mask, maxx, NULL, size, and spix. Referenced by getRGBImage(), and ns_vu1112112::vu1112112::render(). |
Here is the call graph for this function:
|
get colour from specific point
Definition at line 26 of file vuSpectralImage.h. |
|
direct read access to the float array at position (x,y)
Definition at line 32 of file vuSpectralImage.h. References vuColour< S >::getData(). Referenced by vu1112118::updateSImage(). |
Here is the call graph for this function:
|
returns a post-illuminated image in img
Definition at line 85 of file vuSpectralImage.cpp. References vuImage::get_buffer(), get_rgb(), vuImage::getHeight(), vuImage::getWidth(), vuImage::init(), maxx, and maxy. Referenced by vu1112118::render(). |
Here is the call graph for this function:
|
initialize spectral framebuffer of given size
Definition at line 24 of file vuSpectralImage.cpp. References mask, maxx, maxy, set_mask(), and spix. Referenced by vu1112118::resize(), ns_vu1112112::vu1112112::setImageSize(), and vuSpectralImage(). |
Here is the call graph for this function:
|
set a specific light source this source is used to apply post illumination
Definition at line 96 of file vuSpectralImage.cpp. Referenced by ns_vu1112112::vu1112112::setLight(), and vu1112118::setLight(). |
|
set mask to value
Definition at line 49 of file vuSpectralImage.cpp. Referenced by init(). |
|
set spectral color information for a point
Definition at line 55 of file vuSpectralImage.h. Referenced by ns_vu1112112::vu1112112::shootRays(). |
|
stores the light source
Definition at line 66 of file vuSpectralImage.h. Referenced by get_rgb(). |
|
mask to avoid calculating black points
Definition at line 70 of file vuSpectralImage.h. Referenced by create_black_mask(), get_rgb(), init(), set_mask(), vuSpectralImage(), and ~vuSpectralImage(). |
|
extents of the framebuffer
Definition at line 72 of file vuSpectralImage.h. Referenced by create_black_mask(), get_rgb(), getRGBImage(), init(), set_mask(), and vuSpectralImage(). |
|
extents of the framebuffer
Definition at line 72 of file vuSpectralImage.h. Referenced by getRGBImage(), init(), and vuSpectralImage(). |
|
pointer to spectral frame buffer
Definition at line 68 of file vuSpectralImage.h. Referenced by create_black_mask(), get_rgb(), init(), vuSpectralImage(), and ~vuSpectralImage(). |