How can I create dots on a blank image created using zeros?

조회 수: 2 (최근 30일)
Fidessa Isiko
Fidessa Isiko 2020년 8월 22일
댓글: Image Analyst 2020년 8월 23일
I want to creat a black image with white circular spots on it, where I can edit the size of the spots.

답변 (1개)

Walter Roberson
Walter Roberson 2020년 8월 23일
zeros() would create the black image for you. You would then use one of the techniques for creating circles that you would set to 1 (white).
Alternately you could use insertShape from Computer Vision Toolbox.
  댓글 수: 1
Image Analyst
Image Analyst 2020년 8월 23일
Or you could call "hold on" and call plot() then call exportgraphics() to save the image with spot on it to disk.

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by