image2palette: Simple K-means color clustering

버전 1.0.1 (30.6 KB) 작성자: HioBeen Han
Clustering pixel colors of image (K-means) in L/a/b color space to make palette.
다운로드 수: 307
업데이트 날짜: 2018/11/28

라이선스 보기

image2palette() parses image into pixels in L/a/b space, and returns major color components clustered by k-means method. It also returns the name of colors and palette.

--- Usage example

%% (1) Version 1. Pre-defined image
nCluster = 4;
imagefullpath = [pwd, '\' 'football.jpg'];
image2palette( nCluster, imagefullpath );

%% (2) Version 2. Select image using GUI handle
nCluster = 4;
image2palette( nCluster )

Color label reference: https://en.wikipedia.org/wiki/Web_colors

인용 양식

Hio-Been Han (2018). image2palette: Simple K-means color clustering, MATLAB Central File Exchange. Retrieved November 28, 2018.

MATLAB 릴리스 호환 정보
개발 환경: R2018b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
도움

받음: rgb2hex and hex2rgb

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.1

update image

1.0.0