alpha and cdata ?

10 次查看(过去 30 天)
ayidh alharbi
ayidh alharbi 2016-9-7
after adding some color to one image , When I import it through MATLAB , I found that it splits to two part , these parts are alpha and cdata , can you tell me why it became in two parts ?
the surprise here when i choose to access alpha only without cdata , i got fully blank white image .
thank you .
  4 个评论
Steven Lord
Steven Lord 2016-9-7
Be patient! It's just after 9 AM here on the east coast of the United States; when you posted, most of the regular readers were in bed or maybe just woke up and hadn't had their coffee yet.
Manu Goyal
Manu Goyal 2017-1-9
Can you elaborate how you add the color in your image?

请先登录,再进行评论。

回答(1 个)

Steven Lord
Steven Lord 2016-9-7
Search in the MATLAB documentation for the word "transparency". In the online documentation for the most recent release, one page that discusses transparency is this one.
If you're using imread to read in your data, the third output contains the information about the transparency of your image while the first two outputs are related to the colors of your image. If you display just the first two outputs, you'll see the color of your image but not the transparency; if you display just the third, all you're showing is the transparency data and that won't generally look much like your image.

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by