Sunday, 30 December 2018

raster - Erode pixel areas in QGIS


I try to resize Pixel segments exported from eCognition. The goal is to erode the segments for one pixel of the boarder.


So for example if the segment is 30px x 30px the result should be a new area with 28px x 28px. The Problem is that every Segment got an ID, so it should work for every single Segment especially when there are connected. I'm working with QGIS 2.12 and probably it is possible with the raster calculator right?


I found a solution in eCognition: enter image description here enter image description here




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...