HDR and ColorTypes

I’ve been working with HDR data, the Radiance RGBE and XYZE types, and I’ve looked a little at LogLuv and OpenEXR, and I’ve run into a problem: the AbstractRGB ColorType doesn’t accommodate the RGB values that Radiance RGBE and OpenEXR use. AbstractRGB values are limited to the range [0,1]. RGBE uses physical values of radiance, W·sr−1·m−2, which have the range of [0,∞]; openEXR uses values higher than 1 to represent such things as fire and specular highlights.

I am thinking that an AbstractHdrRGB type might be a good idea, something perhaps declared as:

abstract type AbstractHdrRGB{T} <: Color{T,3} end

What do people here think?

Just in case, have you looked at this discourse post?

I have. I think it has a number of problems, though it might be a good place to start from. The biggest one, though, is that it has the RGBE type as a subtype of the AbstractRGB type, and that doesn’t allow for physically based units.

I think, though, I will see if Kimikage is willing to have me do further work on the HDR packages.