Translate image RB2 in the amounts of deltax=size(RB2,2)/4, deltay=size(RB2,1)/4 continuously 4 times, i.e, at the first time, RB2 is translated deltax and deltay, at the second time, RB2 is translated 2deltax and 2deltay, etc. Practice: size(RB2,1) returns the first dimension of RB2, i.e., the number of rows in RB2. size(RB2,2) returns the number of columns in RB2.
* Add all translated images together to form a summation image (same “floating” data type issue!)
* Output 4 individual translated images and the summation image that should be presented in a displayable format.
* Note that since we consider an image is a 2D periodic function, the fourth time translation should produce the original image. “mod” command or “circshift” command may help you simplify processing.