Skip to content

PCA Color Augmentation for Multiple Images using Python

Notifications You must be signed in to change notification settings

aparico/pca-color-augment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCA Color Augmentation on Multiple Images

The easiest and most common method to perform data augmentation is to use transformations that does not change the labels. One example is PCA Color Augmentation.

PCA Color Augmentation (also called Fancy PCA) alters the intensities of the RGB channels along the natural variations of the images, denoted by the principal components of the pixel colors (Bargoti & Underwood, 2016). It performs Principal Components Analysis on the color channels, thus, given the name Fancy PCA.

To know more details, see pca-color-augment.ipynb.

The file batch.py does PCA color augmentation on images from a source folder to another destination folder.

Note: This is a modified version of this pca color augmentation code: https://github.com/pixelatedbrian/fortnight-furniture/blob/master/src/fancy_pca.py

About

PCA Color Augmentation for Multiple Images using Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published