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 7542325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:08:13+00:00 2026-05-30T08:08:13+00:00

I would like to ask for some assistance regarding OpenCV (I am currently a

  • 0

I would like to ask for some assistance regarding OpenCV (I am currently a beginner in using OpenCV).

I intend to measure the growth or movement of an object between two frames.

For example:

                                          _  _
         =  =                          =        =
      =        =                     =            =
     =          =                   =              =
     =          =                   =              =
      =        =                     =            =
         =  =                          =        =
                                          ~  ~                

The first frame contains a black circle with a white background.

The second frame contains a bigger circle with a white background.

What I am thinking of doing is to get the coordinates of the circles (I am not sure what functions are available in OpenCV that allow me to segment the circle and retrieve it’s coordinates). Then subtract the coordinates so that I can measure the growth of the circle.

I have tried looking through some tutorials but have not been able to find any discussing about segmenting objects (such as the circles) and then printing or writing their coordinates into a file.

Is it possible to do something like this with OpenCV, or do I require some other software solution?

Thank you all.

  • 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-05-30T08:08:14+00:00Added an answer on May 30, 2026 at 8:08 am

    In OpenCV, you can:

    1. Extract the edges with a feature-detection algorithm (like the Canny algorithm)
    2. From this edges image, you can use the CV’s snake algorithm cvSnakeImage() which takes an image as an input and computes a set of points
    3. Use this set of points as an input of the function cv::minEnclosingCircle(), which will return the diameter of your circle
    4. Repeat on the next image and compare size of cirlces

    Feature detection doc: http://opencv.willowgarage.com/documentation/feature_detection.html
    Structural/shape descriptor doc: http://opencv.willowgarage.com/documentation/cpp/structural_analysis_and_shape_descriptors.html

    Maybe you can also use optical flows too (though I am not familiar with it, so I am not sure).

    Edit (answer to comment):

    Function cvMinEnclosingCircle() returns “the circumscribed circle of minimal area for a given 2D point set” (from the OpenCV doc) — it means the 2D point set can represent any shape, not only circles. If you know you are comparing different scales of the same object, this measure makes sense (because all parts of your object will grow or shrink at the same time, thus “pushing” or “contracting” the circumscribed circle).

    But there is actually a simpler method: compare the number of black pixels in each image, they represent the area.

    Or, you might be interested in using another library dedicated to segmentation, for example ITK.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good morning! I would like to ask some help from you guys on how
I would like to ask you about some advices about this code. It works,
I would like to make my application ask the user some informations via something
I would like to ask what does it mean AttributeError: 'unicode' object has no
I would like to ask some logic question here. Let say I have a
i would like to ask about some Notepad++ feature that i couldn't find in
I'm new to C# and would like to ask for some direction on solving
I would like to ask to you to share some ideas about how do
I would Like to ask you, if there is a way to set some
Hey guys, I have some questions would like to ask: I wanna ask how

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.