1 | initial version |
Example :
int mmm=-2;
int www=256&-mmm;
cout << www <<"\n";
www=257&-mmm;
cout << www <<"\n";
It gives 256 256
like this you are sure you can have a integer center for following lines
int cx = magI.cols/2;
int cy = magI.rows/2;
PS -2 = 0xfffffffe
2 | No.2 Revision |
Example :
int mmm=-2;
int www=256&-mmm;
cout << www <<"\n";
www=257&-mmm;
cout << www <<"\n";
It gives 256 256
like this you are sure you can have a integer center ( no remainder) for following lines
int cx = magI.cols/2;
int cy = magI.rows/2;
PS -2 = 0xfffffffe
3 | No.3 Revision |
Example :
int mmm=-2;
int www=256&-mmm;
www=256&mmm;
cout << www <<"\n";
www=257&-mmm;
www=257-mmm;
cout << www <<"\n";
It gives 256 256
like this you are sure you can have a integer center ( no remainder) for following lines
int cx = magI.cols/2;
int cy = magI.rows/2;
PS -2 = 0xfffffffe
4 | No.4 Revision |
Example :
int mmm=-2;
int www=256&mmm;
cout << www <<"\n";
www=257-mmm;
www=257&mmm;
cout << www <<"\n";
It gives 256 256
like this you are sure you can have a integer center ( no remainder) for following lines
int cx = magI.cols/2;
int cy = magI.rows/2;
PS -2 = 0xfffffffe