Split two grids into regions of equal non-zero values and count how many regions cover exactly the same cells in both.
Split two grids into regions of equal non-zero values and count how many regions cover exactly the same cells in both.
Opens with the full question.