Ask Your Question

Revision history [back]

Are you sure that bmp have got only 3 channels ? (

Are you sure I think that bmp have got only 3 channels ? (your result must be CV_32F

I think that your result must be CV_32F

Mat ImgDiffT0;

ImgDiffT0 = imread("f:/images/14259116374680093.bmp", CV_LOAD_IMAGE_GRAYSCALE);
Mat Acc(ImgDiffT0.rows, ImgDiffT0.cols,CV_32F);

int n = Acc.channels();
accumulateWeighted(ImgDiffT0, Acc, 0.5);    
ImgDiffT0 = imread("f:/images/14259116584255168.bmp", CV_LOAD_IMAGE_GRAYSCALE);
accumulateWeighted(ImgDiffT0, Acc, 0.5);

I think that your result must be CV_32F

Mat ImgDiffT0;

ImgDiffT0 = imread("f:/images/14259116374680093.bmp", imread(""mDiffT0.bmp", CV_LOAD_IMAGE_GRAYSCALE);
Mat Acc(ImgDiffT0.rows, ImgDiffT0.cols,CV_32F);

int n = Acc.channels();
accumulateWeighted(ImgDiffT0, Acc, 0.5);    
ImgDiffT0 = imread("f:/images/14259116584255168.bmp", imread("mDiffT1.bmp", CV_LOAD_IMAGE_GRAYSCALE);
accumulateWeighted(ImgDiffT0, Acc, 0.5);

I think that your result must be CV_32FCV_32F or CV_64F

Mat ImgDiffT0;

ImgDiffT0 = imread(""mDiffT0.bmp", CV_LOAD_IMAGE_GRAYSCALE);
Mat Acc(ImgDiffT0.rows, ImgDiffT0.cols,CV_32F);

int n = Acc.channels();
accumulateWeighted(ImgDiffT0, Acc, 0.5);    
ImgDiffT0 = imread("mDiffT1.bmp", CV_LOAD_IMAGE_GRAYSCALE);
accumulateWeighted(ImgDiffT0, Acc, 0.5);

I think that your result must be CV_32F or CV_64F

Mat ImgDiffT0;

ImgDiffT0 = imread(""mDiffT0.bmp", imread("mDiffT0.bmp", CV_LOAD_IMAGE_GRAYSCALE);
Mat Acc(ImgDiffT0.rows, ImgDiffT0.cols,CV_32F);

int n = Acc.channels();
accumulateWeighted(ImgDiffT0, Acc, 0.5);    
ImgDiffT0 = imread("mDiffT1.bmp", CV_LOAD_IMAGE_GRAYSCALE);
accumulateWeighted(ImgDiffT0, Acc, 0.5);

I think that your result must be CV_32F or CV_64F

Mat ImgDiffT0;

ImgDiffT0 = imread("mDiffT0.bmp", CV_LOAD_IMAGE_GRAYSCALE);
Mat Acc(ImgDiffT0.rows, ImgDiffT0.cols,CV_32F);

int n = Acc.channels();
accumulateWeighted(ImgDiffT0, Acc, 0.5);    
ImgDiffT0 = imread("mDiffT1.bmp", CV_LOAD_IMAGE_GRAYSCALE);
accumulateWeighted(ImgDiffT0, Acc, 0.5);

I think that your Your result must be CV_32F or CV_64F

Mat ImgDiffT0;

ImgDiffT0 = imread("mDiffT0.bmp", CV_LOAD_IMAGE_GRAYSCALE);
Mat Acc(ImgDiffT0.rows, ImgDiffT0.cols,CV_32F);

accumulateWeighted(ImgDiffT0, Acc, 0.5);    
ImgDiffT0 = imread("mDiffT1.bmp", CV_LOAD_IMAGE_GRAYSCALE);
accumulateWeighted(ImgDiffT0, Acc, 0.5);

Your result must be CV_32F or CV_64F

Mat ImgDiffT0;

ImgDiffT0 = imread("mDiffT0.bmp", CV_LOAD_IMAGE_GRAYSCALE);
Mat Acc(ImgDiffT0.rows, ImgDiffT0.cols,CV_32F);
ImgDiffT0.cols,CV_32FC(ImgDiffT0.channels()));

accumulateWeighted(ImgDiffT0, Acc, 0.5);    
ImgDiffT0 = imread("mDiffT1.bmp", CV_LOAD_IMAGE_GRAYSCALE);
accumulateWeighted(ImgDiffT0, Acc, 0.5);