I would like to create a raster where each cell equals the distance to the nearest cell >= the value of the source cell plus a constant. In the example below, the input raster has a grid size of 1m x 1m. Assume we are adding constant of 2 to the cells. For the top left cell, the distance to the nearest cell that contains a value >= 5+2 is 1.0m. I don't think any of the distance tools in ArcGIS will do this.
Input raster:
Contant = 2
Output raster: