#include <SpectralImage.h>
Collaboration diagram for ns_vu1112112::SpectralImage:
Public Member Functions | |
const ColourType & | get_light () const |
bool | get_xy (int x, int y, ColourType &col) |
get colour from specific point | |
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 (ColourType 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 | set_xy (int x, int y, const ColourType col) |
set spectral color information for a point | |
SpectralImage () | |
constructor | |
virtual | ~SpectralImage () |
destructor | |
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 | |
ColourType | light |
stores the light source | |
ColourType * | 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 ColourType is a typecast that stands for the color model used in the currently compiled version.
Definition at line 18 of file SpectralImage.h.
|
constructor
Definition at line 15 of file SpectralImage.cpp. |
Here is the call graph for this function:
|
destructor
Definition at line 23 of file SpectralImage.cpp. |
|
create a mask to deactivate all pixels with a zero spectrum
Definition at line 63 of file SpectralImage.cpp. References mask, vuColour< S >::maxComponent(), maxx, and spix. |
Here is the call graph for this function:
|
get extents of image
Definition at line 119 of file SpectralImage.cpp. |
|
Definition at line 125 of file SpectralImage.cpp. References ColourType. |
|
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 70 of file SpectralImage.cpp. References byte, vuColour< S >::clampTo01(), vuColour< S >::clampTo1(), ColourType, vuColourRGBa::from(), ns_vu1112112::light, light, mask, maxx, NULL, size, and spix. |
Here is the call graph for this function:
|
get colour from specific point
|
|
initialize spectral framebuffer of given size
Definition at line 31 of file SpectralImage.cpp. References ColourType, mask, maxx, maxy, set_mask(), and spix. Referenced by SpectralImage(). |
Here is the call graph for this function:
|
set a specific light source this source is used to apply post illumination
Definition at line 113 of file SpectralImage.cpp. References ColourType, and ns_vu1112112::light. |
|
set mask to value
Definition at line 56 of file SpectralImage.cpp. Referenced by init(). |
|
set spectral color information for a point
Definition at line 44 of file SpectralImage.h. References ColourType. |
|
stores the light source
Definition at line 59 of file SpectralImage.h. Referenced by get_rgb(). |
|
mask to avoid calculating black points
Definition at line 63 of file SpectralImage.h. Referenced by create_black_mask(), get_rgb(), init(), set_mask(), SpectralImage(), and ~SpectralImage(). |
|
extents of the framebuffer
Definition at line 65 of file SpectralImage.h. Referenced by create_black_mask(), get_rgb(), init(), set_mask(), and SpectralImage(). |
|
extents of the framebuffer
Definition at line 65 of file SpectralImage.h. Referenced by init(), and SpectralImage(). |
|
pointer to spectral frame buffer
Definition at line 61 of file SpectralImage.h. Referenced by create_black_mask(), get_rgb(), init(), SpectralImage(), and ~SpectralImage(). |