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

  • Home
  • SEARCH
  • 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 6836469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:21:33+00:00 2026-05-26T23:21:33+00:00

I have 2 sequences. One (lets call this cvSeq x), which contains a number

  • 0

I have 2 sequences. One (lets call this cvSeq x), which contains a number of contours (derived from cvFindContours) and a second (lets call this cvSeq y) which I have used cvCreateSeq upon, but doesn’t actually have anything in it. I am looping through all the contours in x, and if a contour meets specific criteria, I add it to y. I am able to do the looping, but I don’t know how to add an contour in x to y if it meets the criteria.

Does anyone know how to add a contour in a sequence to another sequence (that is empty)? Code examples will be appreciated.

PS: cvStartFindContours is not an option.

  • 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-26T23:21:34+00:00Added an answer on May 26, 2026 at 11:21 pm

    A solution would be to use the C++ interface, instead of the old one. It is much simpler to use. Contours are stored as vector<vector<Point>>

    You can use it in a similar way:

    Mat myImg = (Mat)myIplImage;
    //or better
    Mat myImg = imread("image.jpg");
    
    vector<vector<Point>> contours;
    
    cv::findContours(myImg, contours,...);
    

    Now access to contours and points is much simpler and easier

    Note I did not checked the code accuracy. You must verify the correct way to send params to findContours, and all the rest.

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

Sidebar

Related Questions

I have a GUI tool that manages state sequences. One component is a class
I have very long integer sequences that look like this (arbitrary length!): 0000000001110002220033333 Now
Below is a clip from a listing of two Pentium assembly sequences. We have
I have to files, one is full of keywords sequences (~20k lines), the other
Let's say we have a data structure like this: var sequences = new List<Tuple<int,
I have 3 asynchronous events which can only be run one after the other.
I have an array that looks like this: [1,2,3,4,5,6,8,10,12,13,14,15,20,21,22,23,24,25,26,27,28,29,30] the highest count on one
This question is related to that one. But somewhat extended. Let's assume we have
this is actually a followup from a previous question but it contains different information
I have one hibernate sequence, that generates all sequence-numbers in my app. When I

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.