I have a merged image containing 20 segments. When I concatenate them directly, I have obviously observable patches in the whole image. I want to get rid of them while distorting the original image as little as possible by using some sort of post-processing.
What I did first was to apply Gaussian and median filters. However, they did not work properly which was expected. And then I applied a low pass Butterworth filter (using skimage library) since the sudden changes in merging points of patches imply a high frequency component. Even though the resulting image looks decent enough, I have an issue that I would also like to solve.
The main issue resides in the bottom part of the images. In the original patches, there are no high valued component at the bottom of the picture. However, when I post-process it via low-pass Butterworth, it seems that there is some sort of leakage from the top of the original patch to the bottom part. Is this due to periodic nature of frequency (fft) domain? In addition, how can I solve this issue without having the residuals in the bottom part?