How do I automate the padding for arbitary images using MATLAB?
- by user198729
This is a further question based on this answer:
http://stackoverflow.com/questions/2589851/how-can-i-implement-this-visual-effect-in-matlab/2589957#2589957
The general solution should work for all background colors and length/width ratios.