inserting a circle on a binary image

2 ビュー (過去 30 日間)
Nouf Harbi
Nouf Harbi 2018 年 3 月 11 日
回答済み: Walter Roberson 2018 年 3 月 11 日
i have a binary image and i want to do a loop for which if the pixel is 1 i want to insert a mark on it and otherwise do nothing. can someone kindly guide me?
  2 件のコメント
Walter Roberson
Walter Roberson 2018 年 3 月 11 日
What is a "mark" for your purpose?
Is the required output something on the display, or is it a new matrix with the marks included?
How does this relate to the question about inserting a circle?
Nouf Harbi
Nouf Harbi 2018 年 3 月 11 日
a mark like a circle on a detected ship. i did a threshold using the max value and my result is an image with a ship and many false alams. i want to insert a circle on the ship i detected .. the ship is 1 the ocean is 0

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 3 月 11 日
regionprops() to get the centroids . You can pass the centroids to viscircles() to have a circle be drawn at those locations.

Community Treasure Hunt

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

Start Hunting!

Translated by