Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

How do I find the area of a shaded region in an image?

  • 04-08-2005 02:15PM
    #1
    Closed Accounts Posts: 756 ✭✭✭


    Hi
    I have a number of images that I want to process. For each image I want to highlight several regions (polygons) and then quickly calculate the area of these regions.
    Does anyone know a tool or a method that can do this? I had a look at how to calculate a polygon's area but this looks like overkill. Maybe something like: I use a colour for the highlight that is not used elsewhere in the image and then count the number of pixels lit in that colour.
    Or maybe there is a graphics program that offers this function.

    Anyone know?

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 228 ✭✭Mary-Ellen


    Hi,

    If you have the coordinates of all points and there isn't too many (cause they'd all have to be entered manually), you could use a program to calculate it.

    There's one in C and in Java on this link:

    http://astronomy.swin.edu.au/~pbourke/geometry/polyarea/

    Applications like mathlab and maple would do it too and you'd probably get ready made code if you googled it. You'd need coordinates for them too.

    Hope that helps.


Advertisement
Advertisement