Skip to content
Projects

rainyear/ImageColorTheme

View on GitHub

About

Extract Color Themes from Images

Design & Media

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

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

Explore related projects

Loading…