USING OPTICAL FLOW CMPS261 Project Shweta Philip OPTICAL FLOW - - PowerPoint PPT Presentation

using optical flow
SMART_READER_LITE
LIVE PREVIEW

USING OPTICAL FLOW CMPS261 Project Shweta Philip OPTICAL FLOW - - PowerPoint PPT Presentation

RIP CURRENT DETECTION USING OPTICAL FLOW CMPS261 Project Shweta Philip OPTICAL FLOW Assumptions made by optical flow algorithms: Pixel intensities of an object do not change between consecutive frames. Neighboring pixels have similar


slide-1
SLIDE 1

RIP CURRENT DETECTION USING OPTICAL FLOW

CMPS261 Project Shweta Philip

slide-2
SLIDE 2

OPTICAL FLOW

  • Assumptions made by optical flow algorithms:
  • Pixel intensities of an object do not change between consecutive frames.
  • Neighboring pixels have similar motion.

Optical flow Lucas-Kanade Algoritm, uses the following equation:

𝜖𝐽 𝜖𝑦 𝜖𝑦 𝜖𝑢 + 𝜖𝐽 𝜖𝑧 𝜖𝑧 𝜖𝑢 + 𝜖𝐽 𝜖𝑢 = 0 𝜖𝐽 𝜖𝑦 u+ 𝜖𝐽 𝜖𝑧 v+ 𝜖𝐽 𝜖𝑢 = 0

Where I(x,y,t) is a pixel intensity in a frame.

slide-3
SLIDE 3

OUTPUT TYPES

slide-4
SLIDE 4

COLOR MAP FOR OPTICAL FLOW

  • Velocity vector, output obtained by
  • ptical flow algorithm: {u, v}
  • The direction of the velocity is

represented as a different color.

  • Each direction is represented by a hue,

and to represent the magnitude, the saturation is adjusted. The more the magnitude, more the saturation.

  • The magnitude is mapped along the

radius of this color wheel.

  • The result is then stored into three

channels.

slide-5
SLIDE 5

THE DIFFERENT CHANNELS OF THE OUTPUT FLOWMAP

Green Channel Red Channel

slide-6
SLIDE 6

THE BLUE CHANNEL VS THRESHOLDING

Blue Channel Output obtained by thresholding w.r.t. direction

slide-7
SLIDE 7

FINAL OUTPUT

  • A red mask was overlaid

based on the information

  • btained by the blue

channel.

  • Red Area represents the

motion in the frames that is going backwards.

  • Though efficient to

capture backward motion of the water, it comes with a lot of noise.

  • Only a window of the blue

channel is used.

slide-8
SLIDE 8

VIDEO OUTPUT

slide-9
SLIDE 9

FUTURE WORK/ IMPROVEMENTS

  • Video Stabilization (Noise Reduction).
  • The mask needs to represent the magnitude of the velocity. (map

magnitude to transparency)

  • Represent backward motion from surface color to arrows.
  • Thresholding w.r.t magnitude of the velocity.
  • Switch to Android Platform.
  • Optimize the algorithm to get results in real time.
slide-10
SLIDE 10

QUESTION TIME

slide-11
SLIDE 11

REFERENCES

  • Lucas Kanade Opencv
  • Color Wheel mapping
  • UCF Optical Flow algorithm
slide-12
SLIDE 12

THANK YOU!