polygon boundaries
in
Programming Questions
•
1 year ago
Hello,
Given an image such as:
,
I'd like to get a list of all the black pixels segmented according to the polygons that they enclose. In other words, every single black pixel is part of the boundary of at least one polygon. For each polygon, I'd like to have a list of these boundary pixels.
I've been barking up various trees, all involving comparing an individual pixel's color with its neighbors, but before I completely tear my hair out by probably reinventing a wheel, I thought I'd see if anyone could point me in the right direction.
Any help would undoubtedly result in immense karmic rewards, I just know it :)
Thanks!, Michael
Given an image such as:
,
I'd like to get a list of all the black pixels segmented according to the polygons that they enclose. In other words, every single black pixel is part of the boundary of at least one polygon. For each polygon, I'd like to have a list of these boundary pixels.
I've been barking up various trees, all involving comparing an individual pixel's color with its neighbors, but before I completely tear my hair out by probably reinventing a wheel, I thought I'd see if anyone could point me in the right direction.
Any help would undoubtedly result in immense karmic rewards, I just know it :)
Thanks!, Michael
1