Hi all: In opencv doucument , the result of using substract link text are all positive (if image range is 0~255). How to do i can get negative value when src1-src2 where src2<src1 ?????<="" p="">
1 | initial version |
Hi all: In opencv doucument , the result of using substract link text are all positive (if image range is 0~255). How to do i can get negative value when src1-src2 where src2<src1 ?????<="" p="">
2 | No.2 Revision |
Hi all:
In opencv doucument , the result of using substract
link text
are all positive (if image range is 0~255).
How to do i can get negative value when src1-src2 where src2<src1 ?????<="" p="">
src2 less than src1 ?????
if i do not want use:
for(int i=0;i<src1.rows;i++)
for(int j=0;src1.cols;j++)
dst.at<uchar>(i,j)=src1.at<uchar>(i,j)-src2<uchar>(i.j)
3 | No.3 Revision |
Hi all:
In opencv doucument , the result of using substract
link text
are all positive (if image range is 0~255).
How to do i can get negative value when src1-src2 where src2 less than src1 ?????
if i do not want use:?????
for(int i=0;i<src1.rows;i++)
for(int j=0;src1.cols;j++)
dst.at<uchar>(i,j)=src1.at<uchar>(i,j)-src2<uchar>(i.j)
4 | No.4 Revision |
Hi all:
In opencv doucument , the result of using substract
link text
are all positive (if image range is 0~255).
How to do that i can get negative value when src1-src2 where src2 less larger than src1 ??????