[Scilab-users] automatic traverse question

sgougeon at free.fr sgougeon at free.fr
Thu May 11 18:04:24 CEST 2017


>another question
>
>gray=rand(200,300);
>lumimins=[ 0.1, 0.5, 0.7, 0.9 ];
>// doesn't work*:*
>monos(:,:,1..length(lumimins)) = ( gray(:,:) >= lumimins(1:$) ) .* 1;
>
>is there a way to generate a plane for each lumimins with automatic traverse?


gray = rand(200,300);
lumimins = [ 0.1, 0.5, 0.7, 0.9 ];
Gray = gray .*. ones(1,1,length(lumimins));
L = ones(gray) .*. permute(lumimins,[1 3 2]);
monos = (Gray >= L) * 1;



More information about the users mailing list