[GIS] How does Nearest Neighbor Image Resampling work in ArcGIS

arcgis-desktopnearest neighborspatial-analyst

I am trying to understand how nearest neighbor for the resampling of Image datasets works in ArcGIS.

The output raster cell value is the value of the closest cell value in the input raster:
enter image description here

In this case the center of each output cell is the middle cell of each 3×3 input cells.

what happens if they are all at the same distance?
if the output has half the dimension of the input, the center of the output will have the same distance to the 4 closest neigh input cells ?

InRas1=6x6
OutRas=3x3

He gets the majority of cell values? No

Or am I missing something here?

Best Answer

Following R.K. suggestion, I have made 3 diferent rasters to test the NN resampling method in arcGIS and when passing from InRas resolution to a resolution that is 1/2 of it, the value of the new cell is allways given by the lower right input cell.

On the left the different InRas files I've created (cell size1, 6x6), on the right the output of the Resampling Tool with Nearest Neighbor with output cell size of 2.

They usually recommend this method to be applied when resampling land use datasets, however I would probably go for a majority filter instead of a NN.

enter image description here

Related Question