Skip to content

hdetang/imageColorTiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

imageColorTiler

Divides an image into a specified dimensioned grid. Each tile of the grid is filled of the dominant color in the corresponding region of the image. You can run the script with the following command :

python imageColorTiler.py <path-to-image> <columns> <rows>

Examples

Here is a few examples of what this script can achieve :

Get the dominant color

Get the most dominant color in your image. This was the original purpose of this script but I decided to tweak it and make it with a grid system.

python imageColorTiler.py ./examples/color/original.jpg 1 1

Shot from the Blade Runner 2049 (2017): Blade Runner 2049(2017) Dominant color : Color Blade Runner 2049(2017)

Slice an image

Slice an image into several band (e.g. for seeing the color repartion through the image)

python imageColorTiler.py ./examples/slice/original.jpg 8 1

Shot from the Star Wars: The Last Jedi (2017): Star Wars: The Last Jedi(2017) Sliced image : Sliced Star Wars: The Last Jedi(2017)

Pixelate an image

You can simply pixelate an image

python imageColorTiler.py ./examples/pixel/original.jpg 80 100

Shot from the movie Skyfall (2012): Skfall(2012) Pixelated image : Pixelated Skyfall(2012)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages