Create Landoltring with transparent background
显示 更早的评论
Hello everybody,
I'm dealing with this question quite a long time. For an experiment I need to have a Landoltring ( http://en.wikipedia.org/wiki/Landolt_ring ) with a transparent background. I already tried to set the background of an existing image to transparent, but this procedure resulted in a unclear image especially at the borders of the ring.
Therefore, I was told the best way to handle is, to create a new Landoltring on a transparent background. Unfortunately I don't know how to do this?
Would somebody help me? I am a newby in MatLab and can only create Rings at the Moment, but I have no idea how to create gaps in the ring or set the whole background transparent.
The gap width is 1/5 of the diameter and so is also the stroke width. Perhaps it is possible to create a circle with a certain stroke width. The problem is that I don't know how to program a gap into it...
Any help would be highly appreciated.
Cheers, Ferdinand
回答(1 个)
Image Analyst
2014-5-30
0 个投票
What is "under" the background? Just windows desktop, other programs, and various clutter like that? Why do you want it to be transparent rather than solid?
You can easily make up a "C" shape with the FAQ on how to create a circle: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F Just create two arcs, and stitch together the ends to form a thick "C" shape. Let us know if you can't do that.
4 个评论
Image Analyst
2014-5-31
It would be far easier just to make up images with the C's on a background of uniform color than to do the same on a transparent background and then create a uniform background of some color and then place your transparent+C image on top of it.
Ferdinand
2014-5-31
Image Analyst
2014-5-31
Well if you're doing that, then why not just write a block to cover up part of it? Show your code so far.
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!