Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of Matlab Hollow scatter Detection

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the example analysis of Matlab hollow scatter detection, which is very detailed and has a certain reference value. Interested friends must read it!

Problem description

There is a picture like this, how to extract the red circle coordinates inside and connect these coordinates to form two closed loops?

The process display image is imported into oriPic=imread ('test1.png'); subplot (2 and 2) imshow (oriPic) is binarized according to RGB value.

The principle is that there are few kinds of colors in the picture, only red, black and white, while red and white have larger R channel values, so we can use this point for image segmentation.

Delete the part outside the red and construct a binary graph grayPic=rgb2gray (oriPic); grayPic (oriPic (:,:, 1)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 228

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report