Home > simtb_v18 > sim > simtb_addMotion.m

simtb_addMotion

PURPOSE ^

simtb_addMotion() - Simulates motion (translation/rotation) of dataset

SYNOPSIS ^

function [Dnew, sP, mp] = simtb_addMotion(sP, D, sub)

DESCRIPTION ^

 simtb_addMotion()  - Simulates motion (translation/rotation) of dataset
                  Pads images to larger dimensions
                  Translates and rotates images at each time point

 Usage:
       >> [Dnew, sP, mp] = simtb_addMotion(sP, D, sub)

 INPUTS:
   sP         = parameter structure used in the simulations
   D          = dataset with dimensions [nT, nV*nV]
   sub        = index number for subject

 OUTPUTS:
   Dnew       = new dataset with simulated motion      
   sP         = parameter structure, updated with new nV
   mp         = [nT, 3] matrix of motion parameters [x-trans ,y-trans, rotation].
                Translation units are proportions of the original image length.
                Rotation units are degrees.

 see also: simtb_makeMotParams()

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 29-Mar-2011 15:45:29 by m2html © 2005