loop problem
-
dear all for (int iiY=0;iiY { for (int iiX=0;iiY { for (int kk=0;kk<3;kk++) { ucImgdata[iiY]=ucImagdata[iiY-1]*mask[kk]; } } } my problem is how to get the following loop: ucImgdata = ucImgdata[iiY-1]*mask[0]+ucImgdata[iiY]*mask[1]+ucImgdata[iiY+1]*mask[2];
Li Zhiyuan
-
dear all for (int iiY=0;iiY { for (int iiX=0;iiY { for (int kk=0;kk<3;kk++) { ucImgdata[iiY]=ucImagdata[iiY-1]*mask[kk]; } } } my problem is how to get the following loop: ucImgdata = ucImgdata[iiY-1]*mask[0]+ucImgdata[iiY]*mask[1]+ucImgdata[iiY+1]*mask[2];
Li Zhiyuan
-
dear all for (int iiY=0;iiY { for (int iiX=0;iiY { for (int kk=0;kk<3;kk++) { ucImgdata[iiY]=ucImagdata[iiY-1]*mask[kk]; } } } my problem is how to get the following loop: ucImgdata = ucImgdata[iiY-1]*mask[0]+ucImgdata[iiY]*mask[1]+ucImgdata[iiY+1]*mask[2];
Li Zhiyuan
Did you follow the advice of other users here and buy a book? Having read through some of your posts it would appear that you are lacking some basic C/C++ knowledge. You're basically banging your head against a wall hoping to punch through if you do it long enough. It's not going to happen until you get yourself the right tools.
-
dear all for (int iiY=0;iiY { for (int iiX=0;iiY { for (int kk=0;kk<3;kk++) { ucImgdata[iiY]=ucImagdata[iiY-1]*mask[kk]; } } } my problem is how to get the following loop: ucImgdata = ucImgdata[iiY-1]*mask[0]+ucImgdata[iiY]*mask[1]+ucImgdata[iiY+1]*mask[2];
Li Zhiyuan
li zhiyuan wrote:
for (int iiY=0;iiY { for (int iiX=0;iiY
Did you bother to preview these before posting to make sure they looked right?
li zhiyuan wrote:
my problem is how to get the following loop: ucImgdata = ucImgdata[iiY-1]*mask[0]+ucImgdata[iiY]*mask[1]+ucImgdata[iiY+1]*mask[2];
That is not a loop.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne