multiply image with scalar
Hello All.
Its possible this operation?;
cv::Mat A
cv::Mat B
cv::Mat C
A= imread(argv[1], CV_LOAD_IMAGE_COLOR); // Read the file
B = imread(argv[2], CV_LOAD_IMAGE_COLOR); // Read the file
C = 5*A - 6*B
So, C will get the difference between A times 5 and B times 6. This is right? Does the matrix multiplication by scalar works fine in opencv?
I mean, for example
5*A
will it multiplicate every A pixel by 5?
I need this information because Im performing discrete filters