Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

HCY-Tools

Numpy implementation for converting RGB to HCY and HCY to RGB

Author

Mathis Petrovich

Usage

Import the functions

fromhcyimportrgb2hcy, hcy2rgb

Load an image (pixels have to be between 0 and 1)

importimageioimg=imageio.imread("lena.png") /255.

Convert the image

hcy_img=rgb2hcy(img)
oimg=hcy2rgb(hcy_img)
assertnp.max(np.abs(oimg-img)) <10**(-13)

About

Numpy fast implementation for converting RGB to HCY and HCY to RGB

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages