convert binary map from pixel to geometric

1 回表示 (過去 30 日間)
mohammed alany
mohammed alany 2020 年 2 月 15 日
回答済み: Deep 2024 年 9 月 25 日
if i have the binary map bellow
How can represent it in geometric coordinates

回答 (1 件)

Deep
Deep 2024 年 9 月 25 日
Hi Mohammed,
As per my understanding, you are trying to extract geometric coordinates of rectangles from an RGB JPEG image using MATLAB. To achieve this, you will need to convert the image to grayscale, create a binary mask using thresholding, and then use the MATLAB function “regionprops” to obtain properties like “BoundingBox” and “Centroid”.
For further guidance, you can refer to the following resources:
Additionally, the "Threshold Intensity Values" section under Chapter 3 of the MATLAB Onramp provides an excellent explanation of intensity thresholding: https://matlabacademy.mathworks.com/details/image-processing-onramp/imageprocessing
Hope this helps!

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by