Image 2D Transformations Translation Rotation Scaling
Dr. Madhu S. Nair (2021). Image 2D Transformations (https://www.mathworks.com/matlabcentral/fileexchange/13633-image-2d-transformations), MATLAB Central File Exchange. Retrieved .
Good for general application.
Simon is right:bad for high-end application.
Recommend you preallocate space for output matrix.
No help, no H1-line, parameters are defined by INPUT, no checks of inputs, not vectorized, no pre-allocation of arrays (remarkably slow), inefficient (e.g. COS(Angle) is calculated for each single pixels in ROTATION), does not consider RGB images ([X x Y x 3] arrays ). ROTATION fails (indices out of range) but the algorithm is not a rotation at all.
This is neiter a good for publishing on FEX nor a good homework.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!