Multiplication Filter

Filter

RIF_IMAGE_FILTER_MULT

Description

Performs multiplication of images. The input image passed in rifCommandQueueAttachImageFilter() is not used.

Parameters

Parameter

Type

Input/Output

Description

inputs

array of images

input

Array of images which will be multiplied.

inputsNum

uint

input

The number of images (images arrays size).

Usage Example

std::vector<rif_image> inputs;
inputs.push_back(img0);
inputs.push_back(img1);
//.......................
inputs.push_back(imgN);
rifContextCreateImageFilter(context, RIF_IMAGE_FILTER_MULT, &filter);
rifImageFilterSetParameterImageArray(filter, "inputs", &inputs[0], inputs.size());
rifImageFilterSetParameter1u(filter, "inputsNum", inputs.size());
rifCommandQueueAttachImageFilter(queue, filter, inputs[0], outputImage);
rifContextExecuteCommandQueue(context, queue, nullptr, nullptr, nullptr);