Image Resampling and Edge Effects

917
4
09-24-2018 10:09 AM
JohnWeidler
New Contributor II

Hello, 

I want to resample an image, using something like neighborhood statistics, but I know this will lead to edge effects. Is there a tool in ArcMap or Pro that will resample an image while adjusting for edge effects? Thanks.

0 Kudos
4 Replies
DanPatterson_Retired
MVP Emeritus

What type of edge affects do you want to accommodate for?

This means that you have no adjacent data that you can use?

And/or you don't want to clip the outputs to remove the edge areas?

The type of treatment used is largely not specified.

The simplest way is to pad the perimeter with nodata values equivalent to 1/2-ish the analysis window size

0 Kudos
JohnWeidler
New Contributor II

There's no adjacent data to use, and I'd rather not clip out edge areas if I don't have to. How do you pad the perimeter with specified values, is there an edge extension tool?

0 Kudos
DanPatterson_Retired
MVP Emeritus

there is no edge tool.

You set the extent of the raster slightly larger than the raster.  Assuming that the raster is rectangular and axis-oriented, find the current extent, then set the Left, right, top and bottom appropriately so you have a border of nodata values.

Numpy has specify tools for 'padding' arrays (aka, rasters) and functions that perform moving/rolling functions that account for nodata.

I suspect most of esri's functions account for edge effects behind the scenes, so before spending a lot of time on this, compare a simple neighborhood mean with a 3x3 moving window with and without the nodata collar.

JohnWeidler
New Contributor II

Thanks!

0 Kudos