2 More descriptive title
| link

Border coherent cells Draw border around constant regions of arrayplotimage

source | link

Border coherent cells of arrayplot

I would like to ask that is it possible to draw borderline - contour - around those cells (pixels) which are neighboring and contains the same value.

An example by hand:

enter image description here

enter image description here