What does the value of I mean?

4 visualizzazioni (ultimi 30 giorni)
덕우 이
덕우 이 il 16 Mag 2021
Commentato: Jan il 18 Mag 2021
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?

Risposta accettata

Jan
Jan il 16 Mag 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 Commenti
덕우 이
덕우 이 il 17 Mag 2021
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.
Jan
Jan il 18 Mag 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?

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by