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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:19:20+00:00 2026-05-19T23:19:20+00:00

Im doing some image processing and I have the coordinates of the 4 points

  • 0

Im doing some image processing and I have the coordinates of the 4 points of a quadrilateral.
(something like a trapezium)
How can i get the coordinates of all the pixels inside it? I’m using Java by the way.
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-05-19T23:19:20+00:00Added an answer on May 19, 2026 at 11:19 pm

    You need scanline polygon filling.

    Here’s a quick PDF lecture on the subject:

    http://www.cs.binghamton.edu/~reckert/460/lect11_2009-areafill-transformations.pdf

    Here’s a web page example with some sample C code and a good illustration of the basic idea:

    http://alienryderflex.com/polygon_fill/

    Here’s the short form. Divide your quadrilateral lines into those that are on the left, and on the right. For each constant-Y-coordinate row, figure out the crossing point for the left line; figure out the crossing point for the right line; all pixels on that row between the two crossing points are inside of your trapezoid.

    Just by way of history, this sort of thing was originally (and probably still is) done for rendering 3d scenes in software. I think it had a different name back then, but I can’t remember it. However, you don’t actually have to draw the pixels; the algorithm will give you the pixels whether you draw them or not.

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

Sidebar

Related Questions

I'm doing some image processing, and I'd like to individually read each pixel value
I'm doing some image processing, and am trying to keep track of points similar
I'm doing some image processing, and I need to find some information on line
I'm playing with some manual (walk-the-pixels) image processing, and I'm recreating the standard overlay
I'm doing some heavy image manipulation in php and I would like to show
So, I'm doing some image processing in MATLAB, and attempting to save a file
I'm doing some Android development, and I much prefer Visual Studio, but I'll have
I have written an image processing application with the GUI part written in Java
Need some pointers to resources for learning about Image processing used in Augmented Reality.
I am doing some weekend coding exercises. I have a table that contains some

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.