Skip to main content
Solved

Looking a way to manipulate neighbour(s) pixel colors/values in a raster!

  • June 20, 2022
  • 2 replies
  • 18 views

Hello everyone! I'm new FME-User and this is my second month of learning FME. I've been fooling around mainly with maps (TIFF,JP2000) and Lidar.

 

I'd like to build a 3D-Model from a part of a forest where I add tree.obj for each tree in a raster.

 

I'm trying to build a tree detector that makes a shapefile of the border of the trees and maybe make a list of the trees in the forest.

 

So far I've tried this, this is probably really painful to watch :D.

TestFilter that detects brightest parts of the forest(tree tops), then second brightest spots and third brightest etc..

Then I start clipping with buffered detected spots from dark part to the brightest parts and in the end of the clippin' I have really messy tree tops marked on raster..

And this doesn't really solve the original problem at all of making a shapefile for an each tree of the forest :D

 

So I figured that better approach might be something like this.

Spot the brightest tree tops --> Mark the tree top --> 

Then start filling neighbour(s) of that spot with X color/value (IF neighbour < X) -->

Until all neighbour(s) of filled area are > X --> And this will be the border of tree on a shapefile.

Then repeat with the second brightest tree tops and leave the filled area alone. Etc.

So my questions is. Is there a way to use NeighbourFinder and/or other transformers to achieve that?

 

nightmarenightmare2

Best answer by JennaKAtSafe

Hi @tomppeli​ , The RasterConvolver might be what you're looking for. Here is an article that shows how this transformer works https://community.safe.com/s/article/neighborhood-functions

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

JennaKAtSafe
Safer
Forum|alt.badge.img+8
  • Safer
  • 192 replies
  • Best Answer
  • July 6, 2022

Hi @tomppeli​ , The RasterConvolver might be what you're looking for. Here is an article that shows how this transformer works https://community.safe.com/s/article/neighborhood-functions


  • Author
  • 1 reply
  • July 12, 2022

Thank you for the answer, that was the right way to go 🙂