05-22-2016 08:45 AM
05-22-2016 09:01 AM
Hi Bob,
thank yu for writing here. Yes, I have looked into the example and these two algorithms as well and I would like to implement them via the mathematical operation. I have found some algorithm called normalized cross correlation which I would like to implement to get the displacement . An algorithm in mathematical form is attached here. Please help me how I implement this to get the displacement in pixels between the two images one being the initial image without movement and the other is moved a bit in xy direction.
BR
Ravi
05-22-2016 09:35 AM
@ravirocks43 wrote:Hi Bob,
thank yu for writing here. Yes, I have looked into the example and these two algorithms as well and I would like to implement them via the mathematical operation. I have found some algorithm called normalized cross correlation which I would like to implement to get the displacement . An algorithm in mathematical form is attached here. Please help me how I implement this to get the displacement in pixels between the two images one being the initial image without movement and the other is moved a bit in xy direction.
BR
Ravi
Several comments.
If you want to implement your (strange) formula in LabVIEW, it is a simple problem of handling Arrays (no need for Matrices). The Brute Force way to do it is to simply bring F and G into a For Loop using an indexing input tunnel and doing multiplication and Array Summation. With that as a hint, and if you know anything about Arrays and For Loops, you should be able to code this up, yourself.
I'm a great believer in "Learn by Doing", hence I am not posting what I see as the easy solution to your summation. You should be able to do this yourself, and if you write a tiny little VI to do this, and provide it with known inputs that you create, you should be able to convince yourself that your code is correct (i.e. it "gives the right answer" -- this is a necessary, but not sufficient, condition). If you get stuck, post your best effort and ask for help.
Bob Schor