What does the value of I mean?

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?

 Accepted Answer

Jan
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

First of all, thank you.
function [surfNormals, albedo] = NormalMap( images, lightMatrix, maskImage, whichChannel)
It's defined like this.
This is my first time using Matlab.
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?

Sign in to comment.

More Answers (0)

Asked:

on 16 May 2021

Commented:

Jan
on 18 May 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!