Re: [Scilab-users] automatic traverse question

2017-05-12 Thread Erhy
as I did thank you -- View this message in context: http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036383.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. ___ users mailing list users

Re: [Scilab-users] automatic traverse question

2017-05-12 Thread sgougeon
Hello Erhy, >I studied your solution and think there will be a very huge array with >kronecker operator and generated the planes with a for loop. There is a common compromise between the used amount of memory and the algorithmic speed. There we are. >And now I have the problem with the max() f

Re: [Scilab-users] automatic traverse question

2017-05-12 Thread Erhy
I studied your solution and think there will be a very huge array with kronecker operator and generated the planes with a for loop. And now I have the problem with the max() function for all planes, at which in the resulting plane each pixel should have the max. values of the according pixels of

Re: [Scilab-users] automatic traverse question

2017-05-11 Thread Erhy
much learned - thank you Erhy -- View this message in context: http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036371.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. ___ users mailing

Re: [Scilab-users] automatic traverse question

2017-05-11 Thread sgougeon
>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,

Re: [Scilab-users] automatic traverse question

2017-05-11 Thread Erhy
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? -- View this message in context: http://mailinglists.s

Re: [Scilab-users] automatic traverse question

2017-05-09 Thread Erhy
Thank you Samuel! This works: resu(:,:)=abs(imdbl(:,:,1)-imdbl(:,:,2)) *.** max(imdbl(:,:,1),imdbl(:,:,2)); -- View this message in context: http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036330.html Sent from the Scilab users - Mailing Lists Archives mailing list archiv

Re: [Scilab-users] automatic traverse question

2017-05-09 Thread sgougeon
Hello Erhy, >resu(:,:)=abs(imdbl(:,:,1)-imdbl(:,:,2))*max(imdbl(:,:,1),imdbl(:,:,2)); This syntax of max() works element-wise and returns a matrix. Then, if the matrix is not square, the * multiplication can't work here. So, depending of what you want to do, you shall either use .* instead of *,

[Scilab-users] automatic traverse question

2017-05-09 Thread Erhy
Hello! im = imread("xxx.jpg"); imdbl = im2double(im); resu=zeros(imdbl (:,:,1)); This without problems*:* resu(:,:)=imdbl(:,:,1)+imdbl(:,:,2)+imdbl(:,:,3); But here I got the error message *Inconsistent row/column dimensions* resu(:,:)=abs(imdbl(:,:,1)-imdbl(:,:,2))*max(imdbl(:,:,1),imdbl(:,:,2)