I am applying some operations on an image and the result image should resemble the image posted in the first figure below, but my resultant image as you see it in figure 2 contains unwanted structure or artifacts.
how can I eliminate these artifacts?
figure 1:
figure 2: