Skip to content

Luminance calculation process involved with V-lambda curve twice? #40

@J6rry

Description

@J6rry

I run the first introduction demo, and found that the luminance of the sphere scene is calculated from energy, which is rendered by pbrt. However, the raw energy data is convert to phtons imediately, whereafter, all the energy data is convert from "photons" data. As photons data has already been converted to "human eye response" with the V-lambda curve, so it cannot be used to convert to the "original" energy data. Am I correct?

Below is the related code in piDat2ISET.m file:

        if(scaleIlluminance)
            % In this case we cannot scale by the area because the aperture
            % is a pinhole.  The ieObject is a scene.  So we use the mean
            % luminance parameter (default is 100 cd/m2).
            ieObject = sceneAdjustLuminance(ieObject,meanLuminance); %already change photons data with V-curve
            ieObject = sceneSet(ieObject,'luminance',sceneCalculateLuminance(ieObject)); % used the changed photons data to convert to energy, then muliply with V-curve again?
        end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions