how to extract number of colors from an image using matlab

2 ビュー (過去 30 日間)
sathiya mala
sathiya mala 2015 年 4 月 16 日
編集済み: Jan 2015 年 4 月 16 日
how to extract number of colors from an image using matlab

回答 (1 件)

Jan
Jan 2015 年 4 月 16 日
編集済み: Jan 2015 年 4 月 16 日
Assuming that the "image" means a file, and not something on paper:
img = imread('YourImage.jpg');
uni = unique(reshape(img, [], 3), 'rows');
Unfortunately rgb2ind does not help here anymore.

カテゴリ

Help Center および File ExchangeModify Image Colors についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by