Divide a non-rectangular image into blocks of the same size

I am looking for an algorithm to cut an image without a rectangle (i.e. a transparent image) into blocks of size (for example) of 16x16 pixels. Blocks may overlap, but the goal is to get the fewest blocks.

Example

Original image

Goal

Summary

  • Blocks must be the same size.
  • Blocks may be overlapping
  • Least Rectangles - Target

Thank you in advance

+4
source share
1 answer

. , . / , , .

, , , , .

0

All Articles