Skip to content

Transform an image into a blockier version of itself.

Notifications You must be signed in to change notification settings

josephdt12/cpp-quads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Transform an image into a blockier version of itself.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published