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
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.mfile: