image processing crop along boundaries
Show older comments
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.
Accepted Answer
More Answers (1)
Aytaç Tok
on 12 Mar 2021
0 votes
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 Comments
Image Analyst
on 12 Mar 2021
Use the ColorThresholder app on the Apps tab of the tool ribbon.
Aytaç Tok
on 13 Mar 2021
how can ı do that can u help me . can u share one example
Image Analyst
on 13 Mar 2021
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.
Categories
Find more on Image Segmentation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!