Fine index matrix of an image

1 回表示 (過去 30 日間)
Anusha
Anusha 2013 年 10 月 19 日
コメント済み: Walter Roberson 2013 年 10 月 19 日
Let I be an image of m×n pixels, and M be the number of distinct colors. I can be
represented as I(x, y) = P(I'(x, y)), where P = {S1, S2, . . . , SM} is the set of all the
colors in I, and I' is a m×n matrix of indexes in {1, 2, . . . ,M} with M typically equal
to 256 or 512.
How to find the I' in an image

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 10 月 19 日
rgb2ind()
  2 件のコメント
Anusha
Anusha 2013 年 10 月 19 日
編集済み: Anusha 2013 年 10 月 19 日
rgb2ind(V);
Error using rgb2ind>parse_inputs (line 129)
RGB2IND(RGB) is a deprecated syntax.
Specify number of colors, tolerance, or colormap.
Error in rgb2ind (line 50)
[RGB,m,dith] = parse_inputs(varargin{:});
Walter Roberson
Walter Roberson 2013 年 10 月 19 日
I didn't say to call it with only one argument.
I quote you,
and M be the number of distinct colors.
if you know the number of distinct colors, then re-read the rgb2ind() documentation.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by