Create Landoltring with transparent background
4 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Image Analyst
on 30 May 2014
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 Comments
Image Analyst
on 31 May 2014
Well if you're doing that, then why not just write a block to cover up part of it? Show your code so far.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!