alpha and cdata ?

조회 수: 12 (최근 30일)
ayidh alharbi
ayidh alharbi 2016년 9월 7일
댓글: Manu Goyal 2017년 1월 9일
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