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