Microscopy Image Browser  1.233
All Classes Files Functions Variables Pages
affine_transform_2d_double.m File Reference

Affine transformation function (Rotation, Translation, Resize) This function transforms a volume with a 3x3 transformation matrix. More...

Functions

function Iout = affine_transform_2d_double (Iin, M, mode, ImageSize)
 Affine transformation function (Rotation, Translation, Resize) This function transforms a volume with a 3x3 transformation matrix. More...
 

Detailed Description

Affine transformation function (Rotation, Translation, Resize) This function transforms a volume with a 3x3 transformation matrix.

Function Documentation

function Iout = affine_transform_2d_double (   Iin,
  M,
  mode,
  ImageSize 
)

Affine transformation function (Rotation, Translation, Resize) This function transforms a volume with a 3x3 transformation matrix.

Iout=affine_transform_2d_double(Iin,Minv,mode,ImagSize)

inputs, Iin: The input image Minv: The (inverse) 3x3 transformation matrix mode: If 0: linear interpolation and outside pixels set to nearest pixel 1: linear interpolation and outside pixels set to zero (cubic interpolation only support by compiled mex file) 2: cubic interpolation and outsite pixels set to nearest pixel 3: cubic interpolation and outside pixels set to zero 4: nearest interpolation and outsite pixels set to nearest pixel 5: nearest interpolation and outside pixels set to zero (optional) ImageSize: Size of output imgage

output, Iout: The transformed image

example, Read image I=im2double(imread(lenag2.png)) Make a transformation matrix M=make_transformation_matrix([2 3],2,[1.0 1.1]); Transform the image Iout=affine_transform_2d_double(I,M,0) Show the image figure, imshow(Iout);

Function is written by D.Kroon University of Twente (February 2009)

References image_interpolation().

Referenced by mib_compile_c_files(), render>render_slice(), and render>warp().

Here is the call graph for this function:

Here is the caller graph for this function: