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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:04:55+00:00 2026-06-05T15:04:55+00:00

I have such a grid square disk. Every grid represents a pixel. My aim

  • 0

I have such a grid square disk. Every grid represents a pixel. My aim is to most accurately aprroximate this disk as a circle (max from inside). Radius of the circle should be 1 so I have to define a x-y plane whose minimum and maximum values -1, +1 respectively. So pixel 35 is the origin (0,0). By the way I don’t want to draw a circle, I just need such a circle which gives me the coordinates of every single pixel.

For example:
for pixel 3, it should give me a coordinate approximately (0 , 0.8).
I can define such a circle, but I am not sure about coordinates. I don’t ask any code but some tips or advices would be appreciated. I am also using emgucv library for this project. Should I define this coordinates from scratch or is there any pre-defined class or something that speed me up.

thanks

enter image description here

  • 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-05T15:04:57+00:00Added an answer on June 5, 2026 at 3:04 pm

    To calculate the distances of the pixels from the origin relative to the circle’s radius, you only need the radius. To get that you can go through the (quarter of) the perimiter of your “disk” and caclulate the min/max distances (as appropriate to your needs). The result is the radius of the circle

    To get the pixels’ relative distance, calculate the pixel’s distance to the origin and divide it by the above measured radius

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

Sidebar

Related Questions

I have such function, that adds a grid of droppables: function AddClassroomDrops(grid, weeks, days,
have such zend query: $select = $this->_table ->select() ->where('title LIKE ?', '%'.$searchWord.'%') ->where('description LIKE
I have a square grid, for a turn based game ( grid is similar
I have a QCheckbox in a grid layout defined as such: self.isSubfactorCheckbox = QtGui.QCheckBox('Is
I have some trigger in my Windows Phone 7 Silverlight app such as <Grid
I have a two dimensional grid of cells. In this simulation, cells may request
Suppose you have an NxN grid, and you want to visit every cell exactly
I have a HTML+CSS grid layout as in this screenshot , which is essentially
I've been struggling with this for a while. Presently, I have a grid of
I have a theoretical grid of overlapping rectangles that might look something like this:

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.