필터 지우기
필터 지우기

Changing the background color

조회 수: 2 (최근 30일)
Selina Loh
Selina Loh 2017년 6월 22일
댓글: Guillaume 2017년 6월 22일
How do we change the background colour of a boundary in the image?
  댓글 수: 3
Selina Loh
Selina Loh 2017년 6월 22일
A curved shape image
Guillaume
Guillaume 2017년 6월 22일
If you are talking about an image pinned to your wall, then you could go to your local diy shop, buy a pot of paint and a brush and use that ...
If you are talking about something else, maybe an image loaded in matlab, then give a lot more details, e.g.
  • How is the image created (using imwrite, using plot functions?)
  • What is the background colour of a boundary? For me, a boundary is a line. A line does not have a background.
  • What is a curved shape image? Images in matlab are always rectangular.
An example of input and desired output would go a long way towards us understanding what you want.

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

채택된 답변

Rik
Rik 2017년 6월 22일
That really depends on the context. I have sometimes converted the image to greyscale and then called bwlabel. With that you can simply find out the label of the (1,1) position.
If you are talking about the background of a figure, look at the figure properties with fig_h=figure;get(fig_h) and see the options for yourself.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by