Image multiply.
function call:
[out_img1]=vsg('Multiply',in_img1,in_img2);
Arguments:
in_img1
input image, 3 channel RGB, 1 channel greyscale or binary image, or
DICOM image.
in_img2
input image, 3 channel RGB, 1 channel greyscale or binary image, or
DICOM image.
Description:
[out_img1]=vsg('Multiply',in_img1,in_img2) multiplies each element in
image in_img1 by the corresponding element in image in_img2
and returns the normalized product in the corresponding element of the
output image out_img1. The output - out_img1 has
dimensions that are the minimum size to fit both of the input images.
Each of the input images are zero padded if their dimensions do not
match.
Examples:
img1 = openimage('baboon.jpg');
img2 = openimage('A.jpg');
[out_img1]=vsg('Multiply',img1,img2);
figure, image(uint8(out_img1));
Notes:
Note the same padding as the “add” function.