How to remove the background from the attached image

조회 수: 2 (최근 30일)
Anisur Rahman
Anisur Rahman 2023년 5월 18일
편집: Image Analyst 2023년 5월 20일
I have some paddy plant image in pot. I want remove the background without removing the pixel of plant. Could you help me to do that?

답변 (2개)

Cris LaPierre
Cris LaPierre 2023년 5월 18일
You would probably benefit by going through the Image Processing Onramp.
If you want a broader introduction, consider the Image Processing for Engineering and Science specialization on Coursera. It's created by Mathworks and free to enroll.

Image Analyst
Image Analyst 2023년 5월 18일
What does "remove" mean to you? Images must remain rectangular. Using the Color Thresholder on the Apps tab of the tool ribbon you can segment out green pixels and create a mask. You can then (if you wish but it's not necessary) blacken pixels outside the green mask, or find the bounding box of the green and crop the image, or both. Explain much more explicitly what "remove" means to you, and what are your plans on after the pixels have been "removed".
  댓글 수: 2
Anisur Rahman
Anisur Rahman 2023년 5월 18일
Remove means to separate the paddy plant from background. I want to use the white part of plant and green part of plant pixel and made the differenc with them. I try to use the Color Threshold App but it remove some green plant parts and also white parts of leaf.
It will help me to separate only paddy plant from background. Thanks in advance.
Image Analyst
Image Analyst 2023년 5월 20일
편집: Image Analyst 2023년 5월 20일
Can you then put your plants on a darker background, like on a black fabric or something?
Actually you may not need to get every single pixel correct. Explain what you are going to do next, assuming you did get it right? Maybe just assess the plant's growth over time? If so you don't need anywhere near that kind of accuracy. The plant's area would change a lot just if you moved the pot to a new location, or took a photo the next day, or took another photo of more plants that were planted the same day. In other words, there are other sources of error that completely overwhel any error you get in the image segmentation. So don't worry about getting each and every pixel accurately classified. Just look at the long term results over several plants and sever weeks.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by