I have a classified raster where one class represents tree and around tree can be busches as another class and there is the third classes grass. I don't know how to analyse:

I have to compare the tree and busch surrounding class area (pixels)

  1. if tree area is greater as busch area - is ok
  2. if busch area is bigger as tree area - set for every pixel in tree area if surrounding 3x3pixels area has more trees/buschesand set this pixel by that either positive or negative value
  • 1
    Your first condition (tree area < bush area) is identical to the second condition (bush area > tree area). – csk Mar 12 at 17:28
  • Could you please a screenshot of the raster data you are working with? I’m your case, it looks like converting your classified raster to vector polygon may help with your analysis. – Aaron Mar 13 at 17:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.