• Avi

    The same coarseToFine function can be used for Horn and Schunck also, right?

    • Eric

      Yeah I think so.

  • tpys

    It’s easy to implement with your tutorial. I found you saved optical flow as two txt file in your code, But how to visuliza them? Can you explain more details, thanks!

    • Eric

      Check ur email 🙂

      • Justin

        Could you also send me the method or code for the flow visualization?

      • Allen

        Can you also help me for the flow visualization? Thanks!

        • duank

          hi,can you know how to visulize them?

      • xiaochong

        Can you also help me for the flow visualization? Thank u!

  • tpys

    Hi Eric, There seem to be a mistake in your corase to fine code, line 191~192 ‘warped1.copyTo(pyr1[i]), warped2.copyTo(pyr2[i])’. Because when I comment these lines, still get same result.

    • Eric

      Ok I’ll check it, thanks for pointing out.

  • Unais

    How can I do seam carving using Gradient Vector Flow

  • Sam

    Coarse 2 fine is implementation when both camera and object is on motion??

    Sorry, if lame question. I am just introduced to thi topic

    • Eric

      Hi Sam,
      Coarse to fine is just a method which reduces the computation(pyramid) and improves the result(interpolation). We actually don’t care whether both the camera and object are on motion, because what is represented by the two images are relative displacements of each pixel.

  • Francisco

    Can you send me the code for get result store in for example .png?

    • Eric

      Hi Francisco,

      Actually you can directly use OpenCV FileStorage methods to store result into, say, XML file, or maybe you want to use imwrite method.

  • Rjv

    You the optical flow in two different text files. Can you please mail me code to visualize the optical flow from those text files?

  • Chicku

    How to implement it in a video?

  • Pingback: ()

  • Pingback: ()

  • davood

    Hi Eric
    I want to realize your code. Do you have any documentation or guidance for your code?

    thank you

  • Jin

    Can you also help me for the flow visualization? Thanks!

  • kisoo

    two file of U.txt,V.txt , how to visuliza them
    please I want to display method of them.

  • Ali

    thanks for your helpful document.

    these methods are methods of optical flow calculation.

    I want to use Histogram of Optical Flow(HOF) for my own data.

    do you have any code for HOF???

  • brent

    Hi im also trying to detect the moving vehicles using remote sensing. can you pls show me the code for flow visualization? pls tnx

  • brent

    hi pls send me how to detect the objects after doing the optical flow. I need help. Im an undergrad student from University of San Carlos Cebu City. How do you get the pixel intensity of CV_64FC1. The pixel intensities I get are very small. They are less than 1 like 0.05

  • duank

    how should I run your code in github?


  • Linux

    Hello , how can i draw the optical flow results in my code with opencv?
    Please can you provide me the code?