Skip to content

hrobb27/sample-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image manipulation

[note 4/16/24: this is really old code from my 2nd year in undergrad. No longer relevant]

hueshift.py:

This program takes in a number that is used to manipulate the RGB values in the given image. In this implementation, there are two core functions. The first converts from RGB to HSV, a color space in which colors are arranged around the radius of a cone with lightness and saturation controlled by the theoretical coordinates within the cone. This gives us direct access to the hue value of each pixel. The second function converts HSV back into RGB, which is what the picture module uses.

dottify.py:

This program samples and pixelates an image into a grid of colored circles.

reduction.py:

An alternative pixelation program that breaks up the image into proportional rectangles and colors them based on the average color within the grid.

wavy.py:

Uses a sin function to offset the image and make it quite wavy based on user input

About

A series of image manipulation algorithms in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages