PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
Public Member Functions | Public Attributes | List of all members
PGENLib.ImagePigment Class Reference

The texture is given through a PFM image. The parameters defined in this dataclass are the following:

Image HdrImageobject
More...

Inheritance diagram for PGENLib.ImagePigment:
PGENLib.Pigment

Public Member Functions

 ImagePigment (HdrImage image)
 
override Color GetColor (Vec2d uv)
 Calculate a color (type color) associated with a (u,v) coordinate. More...
 
virtual Color GetColor (Vec2d uv)
 Calculate a color (type color) associated with a (u,v) coordinate. More...
 

Public Attributes

HdrImage Image
 

Additional Inherited Members

- Protected Member Functions inherited from PGENLib.Pigment
 Pigment (Color color=default)
 
- Protected Attributes inherited from PGENLib.Pigment
Color Color
 

Detailed Description

The texture is given through a PFM image. The parameters defined in this dataclass are the following:

Image HdrImageobject

Member Function Documentation

◆ GetColor()

override Color PGENLib.ImagePigment.GetColor ( Vec2d  uv)
virtual

Calculate a color (type color) associated with a (u,v) coordinate.

Parameters
uv2D vector
Returns
the color of the pigment at the specified coordinates

Reimplemented from PGENLib.Pigment.


The documentation for this class was generated from the following file: