フィルターのクリア

Wired Problem when use AlphaData

4 ビュー (過去 30 日間)
Sean Lawson
Sean Lawson 2012 年 2 月 8 日
I am using R2010 Matlab (7.10.0). I meet a very strange problem when I use set(h, 'AlphaData', 0.3) to generate the transparent image, the output image is transparent but with interleaved white strips (horizontally). Say the following is my code:
figure, h = imshow(image) % correct output image
set(h, 'AlphaData', 0.3) % problem occurs
I tested many images, it seems that RGB images don't have the problem; all the gray images have this issue no matter they are double or unit8.
Does anyone have any clue what's happening??
Thank you in advance.

採用された回答

Walter Roberson
Walter Roberson 2012 年 2 月 8 日
Which OS are you using? And which java version ?
I suggest you try
opengl software
drawnow
and see if that helps.
  2 件のコメント
Sean Lawson
Sean Lawson 2012 年 2 月 8 日
Thank you!! It works.
Does this mean that something is wrong with the GPU?
And btw, my OS is win7, and java version is 1.6.0_29.
Walter Roberson
Walter Roberson 2012 年 2 月 8 日
I do not know what the real cause of the problem is, just the solution.
R2010b (I think it was) had graphics oddities on Windows;
R2011a (I think it was) had graphics oddities on Linux;
R2011a and R2011b had graphics oddities on OS-X Lion, and (different) graphics oddities on OS-X Leopard and Snow Leopard in conjunction with a Java security fix that was implemented at the same time that OS-X Lion was released.
Versions above are from memory, as I do not have any of those myself.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by