image processing crop along boundaries
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Aytaç Tok
am 12 Mär. 2021
0 Stimmen
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 Kommentare
Image Analyst
am 12 Mär. 2021
Use the ColorThresholder app on the Apps tab of the tool ribbon.
Aytaç Tok
am 13 Mär. 2021
how can ı do that can u help me . can u share one example
Image Analyst
am 13 Mär. 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.
Kategorien
Mehr zu Image Segmentation finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!