How can one distinguish the background from the foreground and detect the edges of the seedling?

4 次查看(过去 30 天)
What are some effective approaches or methodologies that can be utilized to differentiate between the background and foreground and accurately delineate the edges of the seedling? I am attaching a image with thier expected results.
input and expect output is

回答(1 个)

Image Analyst
Image Analyst 2023-6-15
This is pretty trivial. Simply use the Color Thresholder on the Apps tab of the tool ribbon. Use it and export the function. Write back if you can't figure it out.
  11 个评论
Dynamic
Dynamic 2023-6-17
Hello @Image Analyst, thanks for your suggestion. For you, it may be trivial work. Please if you provide me a fully automated code for the same I will be highly thankful. Thanks advanced
Image Analyst
Image Analyst 2023-6-17
@Dynamic I can't and won't. I don't want to be responsible for you getting expelled from the university for cheating and unethically turning in someone else's code as your own. You might want to take that risk but I don't want to enable it. Plus you don't learn anything if I just completely do the assignment for you and give you 100% automated, finished, turnkey code to do it all. If you just want that, then hire a consultant. You won't learn anything but they will give you "fully automated code".
I've given you a substantial amount of code already, plus a GUI for batch processing a bunch of files. I think that should be enough for you to continue on with it. If you want a non-GUI, script for batch processing, see the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files?

请先登录,再进行评论。

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by