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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:02:03+00:00 2026-06-08T10:02:03+00:00

I need to develop a method to find the distance of a red line

  • 0

I need to develop a method to find the distance of a red line and the bottom of the image.
I already isolate the red line in hsv using some examples…
I know how to do this using MatLab but now i have to use the opencv :s
Someone can tell me how to do this?

  • 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-08T10:02:06+00:00Added an answer on June 8, 2026 at 10:02 am

    You can access each pixel value of the image in following way.

    IplImage* img=cvLoadImage("your_image.jpg");
    int pixelVal;
    for(int x=0;x<img->height;x++){
    for(int y=0;y<img->width;y++){
        pixelVal=((uchar*)(img->imageData + img->widthStep*x))[y];
    }
    }
    

    in here,

    img->imageData returns a pointer to starting memory location of the image

    img->widthStep is the number of bytes in a image row

    we access the each pixel value and cast using unsigned char pointer to get int value.

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

Sidebar

Related Questions

I need to develop a Lotus Notes plug-in that adds some UI to Lotus
I need to develop some sort of application featuring Editing Movie slices, Adding and
I need to develop a Rest Webservice, Where can I find tutorial or complete
I need to develop the blackberry application using jave (eclips), can you please help
trying to develop web form using jquery. all i need is to have several
I´d develop some Restful services in my application, like (URI): xxx/method/blah yyy/method/bleh zzz/method all
i have a requirement, where i need to develop a single method which accepts
I need to develop a script using Wordpress PHP that will run with the
I am doing some work for which I need to develop a control, it
I need to develop an app using Java wrapper for OpenGL LWJGL .The app

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.