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 .
Type: matrix
m2
Real matrix with the same dimensions as m1 representing y-coordinates.
Type: matrix

Outputs

R
Handle of the output image, representing the magnidude.
Type: integer

Example

Compute the magnitude:

src = imreadcv('cv3.jpg');
data = getcv(src);
m1 = data(:, :, 1);
m2 = data(:, :, 2);
R = magnitudecv(m1, m2);


Figure 1. Input image


Figure 2. Output image