Creating nonoverlapping patches from 3D data and reshape them back to the image

Hi @ptrblck

I have followed the code for reconstructing the estimated image.

As you can see, some parts are quite fine whereas some are pretty bad and mostly the patches can be visible like mosaics.
Is there a way might make the patches smoother to form the image.

TIA