@ivan-jgr thank you. It was of great help to understand STN. One thing I would like to know is can get the points after transformation or not? For an image I’m processing, I would like to know to what point (x,y) gets mapped to after transformation? Can we get this information using affine grid?