Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

can't modify the pixel value

Hi everyone,

I want to smooth an image with opencv/c++,here's my code

newImgMax.at<float>(k,l) = (sum(imgMax, k, l, wmax) / (wmax * wmax));

my function sum works fine,I can edit the result of the function but I can't assign it to a pixel,the function sum returns a float and when I try to assign it to a float variable(not a pixel) I can't too.Any help please ?