any idea how my program can tell that the input image was not a leaf?

1 view (last 30 days)
hello, guys can you give an idea? how my program can tell that the input image is not a leaf? im thinking that i will get the color of the input image then if there is no or small amount of color green value i will display a message box telling that it is not a leaf.
but the problem is if the input image is not a leaf but it has a color green value.
thankyou so much in advance guys :)
  5 Comments
mark
mark on 25 Jan 2015
we have a small studio it look like a box and inside the studio there was a light and a hd webcam. so for example if you take a picture of your hands in the studio that program will show a msg box saying that is not a leaf. i attached my sample database leaf picture.
John D'Errico
John D'Errico on 25 Jan 2015
Edited: John D'Errico on 25 Jan 2015
You need to carefully define what you will accept as a leaf, and what criteria will be used for that identification. If it is purely based on color, then you cannot differentiate between a leaf and any green object, a green ball for example.
So, IF you are asking how to differentiate between a green object and a green leaf, then you need to use shape. Be careful here too though. Is a brown oak leaf, taken from a tree in its fall foliage, is this still a leaf? If is is so, then the simple model of green color PLUS the proper shape will fail.
Does your model include pine needles? Kelp? Grass? The wings of a green butterfly? How about the common katydid? As Image Analyst points out, a plum tree leaf, or the deep purple color of a Norway maple (Crimson King variety)?
http://animals.pawnation.com/large-bugs-look-like-leaves-7006.html
Can a simple computer program possibly identify anything that truly is a leaf? I think not, since the huge variety of leaves and leaf shaped animals in nature must befuddle anything you will come up with.
My point is, you need to carefully define the limits of what you can see as a leaf. Until then, you will be hopelessly lost in the intracies of leafdom. Once you have some careful definition in place, then you can worry about what scheme one would use.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!