Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 997 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 997 Bytes

cpp-quads

Divides an image into quadrants, creating a blockier version of itself.

How it Works

  1. The image is divided into quadrants, with the mean value calculated per quadrant.
  2. Each quadrant is then divided into quadrants again, with the mean squared error calculated per sub-quadrant.
  3. Quadrants with the highest error are divided further, and this continues for the number of iterations provided by the user

Original

original

Blockified (2,048 iterations)

blockified

Blockified (100,000 iterations)

blockified more

A bird example

Pretty bird!

Blockified (512 iterations)

Pretty ugly bird!

Blockified (3000 iterations)

Artistic bird!

Another example

apple

Blockified (1,024 iterations)

apple one

Blockified (10,500 iterations)

apple two