Class for computing physically-based lens flare effects. More...
#include <LensFlare.h>
Public Member Functions | |
| LensFlare (const LensFlareProperties &lens_flare_props, helios::int2 resolution) | |
| Constructor. | |
| void | apply (std::map< std::string, std::vector< float > > &pixel_data, helios::int2 resolution) |
| Apply lens flare effect to image data. | |
| std::vector< std::tuple< int, int, float > > | findBrightPixels (const std::map< std::string, std::vector< float > > &pixel_data, helios::int2 resolution, float threshold) const |
| Find bright pixels that will generate lens flare. | |
Class for computing physically-based lens flare effects.
Implements lens flare rendering using two components:
Definition at line 35 of file LensFlare.h.
| LensFlare::LensFlare | ( | const LensFlareProperties & | lens_flare_props, |
| helios::int2 | resolution | ||
| ) |
Constructor.
| [in] | lens_flare_props | Lens flare rendering properties |
| [in] | resolution | Camera resolution (width, height) |
Definition at line 27 of file LensFlare.cpp.
| void LensFlare::apply | ( | std::map< std::string, std::vector< float > > & | pixel_data, |
| helios::int2 | resolution | ||
| ) |
Apply lens flare effect to image data.
Applies both ghost reflections and starburst diffraction to the camera image.
| [in,out] | pixel_data | Map of band labels to pixel intensity vectors |
| [in] | resolution | Image resolution (width, height) |
Definition at line 39 of file LensFlare.cpp.
| std::vector< std::tuple< int, int, float > > LensFlare::findBrightPixels | ( | const std::map< std::string, std::vector< float > > & | pixel_data, |
| helios::int2 | resolution, | ||
| float | threshold | ||
| ) | const |
Find bright pixels that will generate lens flare.
| [in] | pixel_data | Map of band labels to pixel intensity vectors |
| [in] | resolution | Image resolution |
| [in] | threshold | Minimum intensity threshold (0-1) |
Definition at line 62 of file LensFlare.cpp.