magnitudecv
Computes the magnitude of 2D matrices.
Syntax
R = magnitudecv(m1, m2)
Inputs
- m1
- Real matrix with the same dimensions as m2 representing x-coordinates .
- m2
- Real matrix with the same dimensions as m1 representing y-coordinates.
Outputs
- R
- Handle of the output image, representing the magnidude.
Example
Compute the magnitude:
Figure 1. Input image
![](images/magnitudecv_image1.png)
Figure 2. Output image
![](images/magnitudecv_image2.png)
src = imreadcv('cv3.jpg');
data = getcv(src);
m1 = data(:, :, 1);
m2 = data(:, :, 2);
R = magnitudecv(m1, m2);
![](images/magnitudecv_image1.png)
![](images/magnitudecv_image2.png)