Skip to content

rainyear/ImageColorTheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageColorTheme

Extract Color Themes from Images

pixData

import numpy as np

pixData = np.array([[R, G, B], [R, G, B],...], dtype=np.uint8)
print(pixData.shape)
# (h, w, d)

MMCQ

from ict.MMCQ import MMCQ
mmcq = MMCQ(pixData, maxColor)
theme= mmcq.quantize()

k-means

from ict.KMeans import KMeans
km = KMeans(pixData, maxColor)
theme = km.quantize()

Results

About

Extract Color Themes from Images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages