Source code of resample function


Is the source code of sitk.Resample available publicly? If yes, can someone please mention the path to the source code?

Hello @debapriya,

The SimpleITK code for the Resample function is here. It is only a wrapper of the ITK code which actually does the work. The ITK code is here (it is not an easy read as the code is templated, deals with n-dimensional images and requires familiarity with ITK components and concepts).

Thank you so much!!
I browsed through the code. It is difficult for a beginner. Are there any documentation or explanation of the code available?

You could try to get an example working on simplefilters first, or you could try to prune the current itk algorithm till it’s simple enough and works for you