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?