I have an image, read into np.array by PIL.
In my case, it's a(1000, 1500) np.array.
I'd like to simplify it for visualisation purposes. By simplification, I following transformation from this matrix
1 1 1 1 0 0
1 0 1 0 0 0
to
1 1 0
so, essentially, look at every 2*2 sample, if it satisfies some criteria, like more than 50% of 1's -> count it as a 1, if not, count is as a 0.
I don't know how to call it properly, but I believe there should be some well known mathematic procedure for doing so.