Jun-30-2020, 06:09 AM
Let's say I have a large rectangular picture & each pixel s either 1 or 0 (white/black). How to write a function which takes 2 parameters:
1. Data structure holding the matix of black & white pixel
2. a tuple(x,y) for the position of the start pixel
This function should return the size of black and while area to which that pixel belongs.
any idea where to start?
1. Data structure holding the matix of black & white pixel
2. a tuple(x,y) for the position of the start pixel
This function should return the size of black and while area to which that pixel belongs.
any idea where to start?