Making a ROI and save its coordinates
古いコメントを表示
Hi, I want to create a freehand ROI and crop the ROI part only, and then save the coordinates. Then i want to use the saved coordinate on other similar images to crop the ROI. Any idea how can i do that?
回答 (1 件)
Keerthana Chiruvolu
2020 年 3 月 3 日
0 投票
Hi,
- Kindly use the Image Segmenter App to draw a freehand ROI and create a binary mask. Use this ROI on various images.
- In the case of rectangular ROI, use the Blob Analysis block to obtain the dimensions (coordinates, width, height) of the ROI from the binary mask. Use these dimensions in the imcrop() function to crop the ROI.

Refer to the following links for demo codes:
- https://www.mathworks.com/matlabcentral/answers/17951-to-calculate-mean-of-roi-drawn-using-freehand-tool#answer_24213
- https://www.mathworks.com/matlabcentral/answers/420364-how-to-crop-required-roi-from-an-image#comment_615850
カテゴリ
ヘルプ センター および File Exchange で ROI-Based Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!