Rectangle coordinates from treemap image

Sobel and a simple differentiation kernel:

image image

I’m sure you can find plenty of resources that explain how to call cv.Sobel() or cv.filter2D()

2 Likes