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:
Thanks!
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityI 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:
Thanks!
One way is to treat it as an image and to use edgedetect:
img = Import["http://i.stack.imgur.com/DI4S4.png"];
ImageMultiply[ColorNegate[EdgeDetect[img, 1, 0.1]], img]