What Is the third value when reading an image

4 ビュー (過去 30 日間)
Harel Harel Shattenstein
Harel Harel Shattenstein 2018 年 11 月 13 日
回答済み: Image Analyst 2018 年 11 月 13 日
When using imread() we get a matrix of the size [r,c,x] what does x stand for?
  1 件のコメント
Adam
Adam 2018 年 11 月 13 日
doc imread
tells you this!

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

回答 (2 件)

madhan ravi
madhan ravi 2018 年 11 月 13 日

Image Analyst
Image Analyst 2018 年 11 月 13 日
When used with an image, the third output of the size() function represents how many color channels there are: 1 for a gray scale image and 3 for an RGB image. There are some watchouts if you only accept two size() outputs and you actually really have an RGB image and not a gray scale image. See the link below.
See Steve's blog discussion about this: Too much information about the size function.

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by