Assuming following things,
-Image file is known(lets say jpg), including file format
-2d image(can be painted or photographed from air)
-Color of the area inside shapes may be same or not with background color(in case it is, border of shape has a distinct color)
-Background may have different colors
-No shape collide with each other
Attachment is an example.(4 shapes there)
It is asked to implement this with lowest amount of memory(well, just means additional libraries are not allowed, no need to sacrifice any readability)And I am completely lost here.Also there is a black and white image with 3 shapes, if it makes a difference can someone guide me about what to do from there?
-Image file is known(lets say jpg), including file format
-2d image(can be painted or photographed from air)
-Color of the area inside shapes may be same or not with background color(in case it is, border of shape has a distinct color)
-Background may have different colors
-No shape collide with each other
Attachment is an example.(4 shapes there)
It is asked to implement this with lowest amount of memory(well, just means additional libraries are not allowed, no need to sacrifice any readability)And I am completely lost here.Also there is a black and white image with 3 shapes, if it makes a difference can someone guide me about what to do from there?