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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:47:46+00:00 2026-06-01T09:47:46+00:00

I need to get the coordinates of all the pixels inside this particular region

  • 0

I need to get the coordinates of all the pixels inside this particular region of an ellipse.

I know the size of the grid, the center of the elipse and the vertical_radix and horizontal_radix.

I searched on the math forums but couldn’t find anything useful.

So for the next example the grid is 26 by 26.
Center of the ellipse is at (13, 7) and vertical_radix is 7 and horizontal_radix = 13.

Knowing this I need the coordinates (pair of x and y) of all the grey pixels.

I just need like a function that knowing this 6 params (grid_width, grid_height, x_center, y_center, vertical_radix, horizontal_radix) could get my coordinates. (any of the tagged languages)

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-01T09:47:48+00:00Added an answer on June 1, 2026 at 9:47 am

    Scale the x and y offsets of the dots from the center into a unit circle, then check the distance from the center.

    EDIT:

    Assuming a center of (x, y), a point at (x1, y1), and an ellipse with axes of (a, b):

    The scaled point is (2(x1-x)/a, 2(y1-y)/b). See if this is more or less than 1 from (0, 0), i.e. square each component and compare the sum with 1.

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

Sidebar

Related Questions

First of all I know this is probably bad sql but I just need
For testing purposes, I need to get the coordinates of all visible views on
In an iPhone application I'm developing I need to get GPS coordinates to perform
I need get the id of an images which is place inside a datatemplate..
I need get all items these have no categories int? categoryId = null; var
I have linq request. I need get item.Title in select. how do this? var
Is there a way to get the coordinates off all touches currently on the
Ok i know this is quite off-topic for programmers but still I need this
I need to get the GPS coordinates of an image taken with the iOS
I need to select a part of html page and get coordinates of selection

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.