image processing crop along boundaries
古いコメントを表示
Hi guys, I would like some tips to solve this problem. Thank for your help.
I have an image with some geometrical figures in it. I would like to obtain a new image with only the geometrical figures in it ( neglecting the backround). I also want to keep the intensity information of the starting image for the area inside the geometrical figures.
ps: i need to imbinarize the starting picture cause switching to gray image and thresholding the values doesn't work as desired.
I will attach my script.
採用された回答
その他の回答 (1 件)
Aytaç Tok
2021 年 3 月 12 日
0 投票
How can I get the object by auto cropping from a rgb picture. For example, there is a banana on the table and the background is black. I want to crop this picture and just take the banana and I want no background pixel at all. how can I do that
3 件のコメント
Image Analyst
2021 年 3 月 12 日
Use the ColorThresholder app on the Apps tab of the tool ribbon.
Aytaç Tok
2021 年 3 月 13 日
how can ı do that can u help me . can u share one example
Image Analyst
2021 年 3 月 13 日
Try this
- Click on the Apps tab ofthe tool ribbon
- Look in the Image Processing section for the Color Thresholder and click on it.
- Click the File Load menu and load your image from the file.
- Select a color space, such as HSV.
- Adjust the Value threshold to get just the banana.
- If it doesn't work well, then try to involve the Hue channel as we..
- Click the Export button to create a function for it.
- In your program, read in your image and then call the function that you exported.
カテゴリ
ヘルプ センター および File Exchange で Image Segmentation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!