Does anyone know how to delete single edge pixels in a raster after a mask is completed?

I could convert to polygon and back to raster, but I don't want to lose accuracy. I am using ArcMap.

  • Have you explored the Shrink tool?
    – Hornbydd
    Commented Feb 14, 2020 at 19:01
  • Try region group, it will contain count of pixels.
    – FelixIP
    Commented Feb 14, 2020 at 19:36
  • Feel free to ask a separate second question about ArcGIS Pro if you want to know how to do it in both applications.
    – PolyGeo
    Commented Feb 14, 2020 at 19:59
  • You should be able to apply some filter, for example convert to numpy array then: stackoverflow.com/questions/46043048/…
    – Bera
    Commented Jul 28, 2020 at 9:30

1 Answer 1


Does these pixels all has the same unique value? for example, 0,0,0? You can just omit those pixels from your raster.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.