Hi friends,
I'm working on comparing 2 images,
And sometimes the images or not equal in size. What breaks the comparation.
For that I tried a code that checks the max Row and col and adds it to the lake image something like this :
MatmSize=newMat(Math.max(base.rows(),cur.rows()),Math.max(base.cols(),cur.cols()));
intgapRows=mSize.rows()-base.rows();
intgapCols=mSize.cols()-base.cols();
if(gapRows>0){
base.resize(gapRows,newScalar(0,0,0,1));
}
else{
current.resize(gapRows,newScalar(0,0,0,1));
}
if(gapCols>0){
}
else{
}
Now I cannot find a way for adding a column, any help??
Or is another simpler idea for solving the size issue?
hope Im clear enough....
Thanks in advance!