What does the value of I mean?
4 views (last 30 days)
Show older comments
for i = 1:nrows
for j = 1:ncols
if( maskImage(i,j) )
for im = 1:numImages
I(im) = double(images(i,j, whichChannel, im));
end
[NP,R,fail] = PixelNormal(I, lightMatrix);
surfNormals(i,j,1) = NP(1);
surfNormals(i,j,2) = NP(2);
surfNormals(i,j,3) = NP(3);
albedo(i,j) = R;
end
end
end
What does the value of I mean?
0 Comments
Accepted Answer
Jan
on 16 May 2021
I is the value of images(i,j, whichChannel, im) as a double. So you have to find out, what images contains. How was this variable defined - or is it a function?
2 Comments
Jan
on 18 May 2021
function [surfNormals, albedo] = NormalMap( images, ...
lightMatrix, maskImage, whichChannel)
This is the definition of the function NormalMap. This does not clarify, what the contents of "images" is.
If it a variable, which is obtained as input?
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!