From an image, i want to calculate as accurately as possible:
- The overall ratio of black compared to white
- Which horizontal lines have the most black pixels. i want the top 3 lines.
- Which vertical lines have the most black pixels. i want the top 3 lines.
- For each of the top 3 horizontal lines, what is the ratio of black compared to white.
- For each of the top 3 vertical lines, what is the ratio of black compared to white.