Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rookieWanZ opened this issue Mar 31, 2023 · 1 comment
Open

Comments

@rookieWanZ
Copy link

rookieWanZ commented Mar 31, 2023

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 rookieWanZ changed the title How should I pass the Image sequence by order of Z? How should I make an Image sequence by order of Z? Mar 31, 2023
@rookieWanZ rookieWanZ changed the title How should I make an Image sequence by order of Z? 【Algorithm】How should I make an Image sequence by order of Z? Mar 31, 2023
@rookieWanZ
Copy link
Author

rookieWanZ commented Mar 31, 2023

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 ???????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant