0

I have an aerial photo that contains trees and roofs of houses, and I need to detect only the trees. To do that I thought about using an algorithm that detect texture (maybe OpenCV or other) but I dont know how to implement it.

Image: enter image description here

OpenCV is the best in this case? Do you know another algorithm that do what I want? How can I implement it?

rayryeng
  • 102,964
  • 22
  • 184
  • 193
Pedro Marques
  • 175
  • 2
  • 14
  • Do you **have** to use texture? The trees have a unique hue in comparison to the rest of the background. Could you simply detect that colour instead? – rayryeng Feb 28 '16 at 05:00
  • I can use anything that separate the trees from the roofs. The texture it's only an suggestion – Pedro Marques Feb 28 '16 at 06:13
  • This might help: http://stackoverflow.com/questions/35345311/detect-plants-in-a-grass-image – beaker Feb 28 '16 at 15:34

1 Answers1

3

This is what Hue channel of the above image looks like : enter image description here

Then you can threshold this image using a hard-coded value or you can use Otsu's method to find the threshold.

To do all this use, you can use OpenCV APIs.

igweyn
  • 141
  • 5