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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:30:45+00:00 2026-06-12T21:30:45+00:00

Goal: I am trying to acquire the size of the iris (width/radius) using video

  • 0

Goal: I am trying to acquire the size of the iris (width/radius) using video as input.

I have tried HoughCircles but it seems that it is not precise as the iris circle seems to not be so accurate. What information I have already is the center point for the eye pupil and its radius.

Grayscale Eye

It has been suggested to me to find the iris edge to try and measure the gradient magnitude starting from the pupil center going outward. Then to use a histogram using the accumulation of the gradient maximum to find the iris width. I am not exactly sure in which way to implement this, starting from a specific point.

I used the Sobel operator on the eye ROI to try and get the gradient with the output shown below.

Sobel Eye

Sobel image code:

void irisFind(Mat gradMat, Point2i pupCenter, int pupRad){

imshow("original", gradMat);


Mat gradX;
Mat gradY;
Mat absGradX;
Mat absGradY;

GaussianBlur(gradMat, gradMat, Size(3, 3), 0, 0, BORDER_DEFAULT);
equalizeHist(gradMat, gradMat);

//Generate Gradient along x
Sobel(gradMat, gradX, CV_16S, 1, 0, 3, 1, 0, BORDER_DEFAULT);
convertScaleAbs(gradX, absGradX);

//Generate Gradient along y
Sobel(gradMat, gradY, CV_16S, 0, 1, 3, 1, 0, BORDER_DEFAULT);
convertScaleAbs(gradY, absGradY);

addWeighted(absGradX, .5, absGradY, .5, 0, gradMat);

imshow("Sobel", gradMat);
}

I am not exactly sure how to proceed next. Any suggestions or comments are appreciated. Also please let me know if I missed any information or if I was vague on something. Much thanks in advance!

EDIT: I should have explained the context of my application better so I apologize for that. I am measuring pupil dilation of the eye over frames from video input. I already know the location of the center point of the pupil and the radius of the pupil. I am trying to find the size of the iris so that variations of the distance from the eye to the camera can be used to compensate for misinterpreted values of the pupil size, since if the eye becomes closer to the camera the pupil will of course appear larger without dilation. I might also try other ways to account for this such as the eye corners but I figured that since I already have several pupil features that I would start with the iris.

Again, sorry for leaving this detail out before. Thanks!

  • 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-12T21:30:47+00:00Added an answer on June 12, 2026 at 9:30 pm

    Clarifying the suggestion you talk about in your question:

    “It has been suggested to me to find the iris edge to try and measure the gradient magnitude starting from the pupil center going outward. Then to use a histogram using the accumulation of the gradient maximum to find the iris width. I am not exactly sure in which way to implement this, starting from a specific point.”

    What you can concretely do is to start from your pupil center, and perform a region growing algorithm where your stopping condition, instead of beeing, say, a too different grey level value, is a threshold on the magnitude of your gradient. Some pseudo code:

    initalize list of points with center of your pupil
    initialize a mask image to zero
    while list of point is not empty
       point pt = pop()
       set maskImage at pt to 255
       for  pt2 in pt neighbourhood
           if (gradientMagnitude at pt2 < THRESHOLD and maskImage at pt2 == 0)
              list of points.add (pt2)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to create a moving back ground. My goal is to have a
I'm trying to set up integration tests using the AbstractTransactionalJUnit4SpringContextTests base class. My goal
The goal: I'm trying to use the new Entity Framework 4.1 DbContext API (using
Goal: I'm trying to use python interactively in my c++ code using Boost::Python library.
I'm trying to achieve the following goal: Using this general singleton class: abstract class
Goal: Using jQuery, I'm trying to replace all the occurrences of: <code> ... </code>
Im trying to achieve the same goal as OP there: Downloading mp3 files using
I'm trying to implement the APM pattern using Richter's AsyncEnumerator class. The goal is
I'm trying to generate a function declaration using a macro /* goal: generate int
Hi I'm trying to reach this goal but as far as I am, I've

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.