https://la.mathworks.com/help/images/ref/affineoutputview.html
affineOutputView - Create output view for warping images - MATLAB
This MATLAB function takes the size of an input image, sizeA, and an affine geometric transformation, tform, and returns a spatial referencing object, Rout.
output viewcreatewarpingimagesmatlab