dividecv

Divides each element of source1 by each element of source2.

Syntax

R = dividecv(source1, source2...)

R = dividecv(source1, source2, scale, depth)

Inputs

source1
Handle of an image, scalar or a 2D real matrix. If source1 and source2 are image handles, their size and number of channels must match.
Type: scalar | matrix
source2
Handle of an image, scalar or a 2D real matrix. If source1 and source2 are image handles, their size and number of channels must match.
Type: scalar | matrix
scale
Optional scale factor applied to each element of R.
Type: scalar
depth
Optional parameter specifying the depth of R. If negative, the same depth as source1 and source2 will be used.
Type: integer

Outputs

R
Handle of the output image.
Type: integer

Example

Divide two images:

source1 = imreadcv('image1.jpg');
source2 = imreadcv('image2.jpg');
R = dividecv(source1, source2);