Coder Social home page Coder Social logo

flow_x and flow_y about dense_flow HOT 5 CLOSED

wanglimin avatar wanglimin commented on September 24, 2024
flow_x and flow_y

from dense_flow.

Comments (5)

wanglimin avatar wanglimin commented on September 24, 2024

It represents the motion field of each pixel, which could be decomposed into x- and y- direction.

from dense_flow.

ksharsha avatar ksharsha commented on September 24, 2024

Does that mean both flowx and flow y have the same values? But this isn't the case.

from dense_flow.

wanglimin avatar wanglimin commented on September 24, 2024

It should not be the same value for flow x and flow y. You could refer to the wikipedia for more information on optical flow:

https://en.wikipedia.org/wiki/Optical_flow

from dense_flow.

ksharsha avatar ksharsha commented on September 24, 2024

I do know what optical flow is but i am not able to understand what the flow_x and flow_y images represent. For a pixel in an image we have the displacement in both the x and y directions. How is this represented in the flow_ and flow_y images. I see that every pixel in flow_x as well as flow_y has two components. In normal optical we just have one image where every pixel has displacement in x and y direction. However here we have two images for the same. Hence I am unable to understand what is the difference between both the maps.

from dense_flow.

wanglimin avatar wanglimin commented on September 24, 2024

I can not understand what you mean "I see that every pixel in flow_x as well as flow_y has two components. "

In fact, the flow_x and flow_y images are gray image, where each pixel simply has a single value rather than two components.

Flow_x and flow_y are the quantization of displacement in x and y direction, respectively. In this sense, we separately quantized (i.e., from a float value to a integer in [0,255]) the value of x and y displacement , and the quantized result are stored in a jpg format. For details about the quantization, please see:

https://github.com/wanglimin/dense_flow/blob/master/denseFlow_gpu.cpp#L11

from dense_flow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.