- Read images in MATLAB: https://www.mathworks.com/help/matlab/ref/imread.html
- Convert to grayscale: https://www.mathworks.com/help/matlab/ref/rgb2gray.html
- Logical operations for creating binary masks: https://www.mathworks.com/help/matlab/logical-operations.html
- Extract region properties: https://www.mathworks.com/help/images/ref/regionprops.html
convert binary map from pixel to geometric
조회 수: 2 (최근 30일)
이전 댓글 표시
if i have the binary map bellow
How can represent it in geometric coordinates
댓글 수: 0
답변 (1개)
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!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!