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!