| |
Program Functions
157
vZ2Ph.m
vZ2Ph calculates the phase(s) of a complex number or matrix and makes sure that the phase(s)
lie(s) within the interval [0 2 ] by calling the vMk0To2Pi.
6.18 Warping
This directory contains files for deforming (warping) images. The deformation is done based
on displacement fields.
vMkWarpedBoundariesIm.m
vMkWarpedBoundariesIm creates an image with boundaries between adjacent visual areas.
Boundaries are represented by different values in the resulting image:
1, outer boundary of V3d
2, boundary between V3d and V2d
3, boundary between V2d and V1
4, boundary between V1-V2v
5, boundary between V2v and V3v
6, outer boundary of V3v
pixel =
;
Equation 30: Boundaries Image
The function needs a deformed ROIsImage (see Equation 17) and an argument that specifies
the thickness of the boundaries that are to be created. Then, for each boundary the deformed
ROIsImage is pre processed and the sub function mkBoundaryIm is called. The pre processed
ROIsImage only has two visual areas stored (area1 and area2): the two visual areas that are
separated by the boundary that is to be found. One visual area is represented by pixels of ones,
the other one by pixels that have the value two. The sub function mkBoundaryIm creates two
images from the input: One image with area1, the other with area2. Each image is shifted in
different directions and the shifted versions of each image (and the image itself) are summed
up individually. This results in two images. The number of directions varies with the thickness
argument given to the function. Each image stores only one grown visual area. The intersec-
|  |
|
| |
|
|