image thumbnail
from Trans Camera View by Nobuhito Mori
This .m function transforms camera captured image to planner plane using perspective transformation.

test_func_transcameraview.m
%
% example using func_transcameraview.m
%

file_read   = 'testimage.jpg'

% read jpeg RGB image (uinit8)
[ I ] = imread( file_read, 'jpeg' );

alpha =  20;
theta =  20;
phi   =  45;

depth = -10;

i_fill = 0

[ J ] = func_transcameraview( I, alpha, theta, phi, depth, i_fill );

imagesc(J)
colormap(jet);
axis equal

Contact us at files@mathworks.com