- open App using the imageSegmenter(img)
- Select Draw ROIs
- Select freehand drawing and highlight the parts you want in image
- Exit ROI
- Click on export
how to select the parts/objects in an image
37 ビュー (過去 30 日間)
古いコメントを表示
I want to select the specific parts of an image, like I have a plant image and in that iamge I need to to select/highlight/ the flowers and other parts, how to do that plz guide, what is the best way to do that?
0 件のコメント
回答 (2 件)
Sarvesh Kale
2023 年 3 月 7 日
If you are trying to segment an image then you can do the following
img=imread('peppers.png');
imageSegmenter(img)
An Image segmentation App will open which will allow you to highlight the specific patches in image. Follow the steps
More information on image segmentation can be found in the following documentation
If you want to crop a part of image and further use the image patch for image processing then take a look at imcrop function
the documentation link is https://in.mathworks.com/help/images/ref/imcrop.html
I hope this helps your query, please accept the answer if it does
Thank you
4 件のコメント
Image Analyst
2023 年 3 月 10 日
It's a generic, general purpose demo of how to threshold an image to find blobs, and then measure things about the blobs, and extract certain blobs based on their areas or diameters.
You can also try my other demos in there on color segmentation, or you can try the Color Thresholder on the Apps tab of the tool ribbon.
2 件のコメント
Image Analyst
2023 年 3 月 10 日
In a nutshell, here are the essentials of image processing:
mask = grayImage > someThreshold;
props = regionprops('table', mask);
If you want more details, then that's what my tutorial does in well-commented, excruciating detail.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!