<< imgettransform Image Registration and Image Fusion warpmatselect >>

IPCV >> Image Registration and Image Fusion > imtransform

imtransform

Image affine transformation

Syntax

imout = imtransform(imin,warpmat,tf_type, width,height)

Parameters

imin :

Source Image

warpmat :

Affine transform matrix

tf_type :

Transformation type, affine or perspective

width :

Output image width

height :

Output image height

imout :

Transformed Image

Description

Applies an affine transformation or perspective transformation to an image.

Examples

S = imread(fullpath(getIPCVpath() + "/images/measure_gray.jpg"));
src = [261 412; 170 348; 213 282];
tgt = [175 412; 170 308; 251 308];
mat = imgettransform(src,tgt,'affine')
S2 = imtransform(S,mat,'affine');
imshow(S);
figure();imshow(S2);

See also

Authors


Report an issue
<< imgettransform Image Registration and Image Fusion warpmatselect >>