CImg icon indicating copy to clipboard operation
CImg copied to clipboard

【Algorithm】How should I make an Image sequence by order of Z?

Open rookieWanZ opened this issue 2 years ago • 1 comments

I run the code 8.4 LucasKanade1

At the 35th line, access the cimglist grad(2), and this grad(2) is all zero( the 0 and 1 part has normal value)

How should I pass the Image sequence by order of Z?

image

image

rookieWanZ avatar Mar 31 '23 09:03 rookieWanZ

Why is the slice0 same as slice1? image

CImg<float> ImgSeq(IMG_WIDTH,IMG_HEIGHT,2,1,0); ImgSeq.slice(0).rand(0,255); ImgSeq.slice(1).rand(100,200); auto Sub = ImgSeq.slice(0) - ImgSeq.slice(1); float va,vb; va = Sub.max_min(vb); printf("%f %f\r\n",va,vb);// 0 0 ???????

rookieWanZ avatar Mar 31 '23 12:03 rookieWanZ