xtreme
xtreme

Reputation: 1901

Getting the area of the two different image parts of UIImage

enter image description here

This is UIImage that i am showing on the image view . My requirement is to get the area of these two different shapes separately in term of the pixels .I have tried a lot. Currently I am getting the addition of the pixels enclosed by those two areas. How can i get this areas differently is there any library or algorithm to do this?

Upvotes: 1

Views: 67

Answers (1)

Prajwal Rauniyar
Prajwal Rauniyar

Reputation: 136

I have done something similar in C. There is a simple algorithm, you might be interested in http://en.wikipedia.org/wiki/Connected-component_labeling

Upvotes: 1

Related Questions