Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8621713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:52:49+00:00 2026-06-12T06:52:49+00:00

I am writing image analysis program in python and am trying to use the

  • 0

I am writing image analysis program in python and am trying to use the cv.CalcOpticalFlowFarneback. I figured out most of the things and the analysis works, however, I would like to play a little with flags parameter. In cv documentation it says that flags is an integer and the description is the following:

flags –
Operation flags that can be a combination of the following:
OPTFLOW_USE_INITIAL_FLOW Use the input flow as an initial flow approximation.
OPTFLOW_FARNEBACK_GAUSSIAN ...

The question is how do I set flag to use either one of the options or both of them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:52:50+00:00Added an answer on June 12, 2026 at 6:52 am

    Try:

    flags = OPTFLOW_USE_INITIAL_FLOW | OPTFLOW_FARNEBACK_GAUSSIAN
    

    The | (pipe) character is a bitwise or. A common way of doing flags is to use different powers of 2 for each flag. For instance, if OPTFLOW_USE_INITIAL_FLOW is 2 and OPTFLOW_FARNEBACK_GAUSSIAN is 8 then their combination is 1010 in binary.

    Their actual values can be seen in the documentation:

    OPTFLOW_USE_INITIAL_FLOW = 4
    OPTFLOW_FARNEBACK_GAUSSIAN = 256
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an image processing program and am trying to implement gpgpu and
I am writing a program to do some image processing. I am working with
I'm writing a program about image-processing. I need to store an int square matrix
I am writing a sort of image processing program that allows the user to
I'm writing a WPF application and trying to bind an image to my view
I'm currently writing an image editing application using Flex and I'm trying to make
I am re-writing a light weight image server I wrote in Python using epoll
I am writing an image processing program with the express purpose to alter large
I'm writing an image processing program to perform real time processing of video frames.
I am writing a simple digital image processing program. To do this I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.