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
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

Ferdinand
Ferdinand 2014년 5월 30일
편집: Ferdinand 2014년 5월 30일
Hello, I need it to be transparent, because I want to use it in multiple experiments with different background colors of the monitor. In order to have a nice presentation of the ring it would be useful to only have the ring in black and no other background color. I will try your advise :) Thanks.
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
Ferdinand 2014년 5월 31일
Ok thank you for your advise. Unfortunately, I was reading the FAQ page, but am still a bit lost in creating the C I was of course able to create normal circles but I can't handle the thing with the gap ...
Well if you're doing that, then why not just write a block to cover up part of it? Show your code so far.

댓글을 달려면 로그인하십시오.

질문:

2014년 5월 30일

댓글:

2014년 5월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by