Thank you @ivan-jgr. I would like to convert the translation values to the pixel. I’ve updated the notebook with y translation set to 20/128. However, the results do not seem to be correct. It is not translated by2 20 pixels. Also, how would this work for the composite affine matrix that contains rotation, scaling and shearing along with translation?