Dear PackPublishing It seems there is typo in creating myRow/myCol i.e. for instance `int myRow=color.cols-1; ` to be `int myRow=color.rows-1;` https://github.com/PacktPublishing/Building-Computer-Vision-Projects-with-OpenCV4-and-CPlusPlus/blob/f5aaab9dc17fb6dd62108acb3d52aec81a3fd275/Chapter02/sample1.cpp#L27
Dear PackPublishing
It seems there is typo in creating myRow/myCol i.e. for instance
int myRow=color.cols-1;to be
int myRow=color.rows-1;Building-Computer-Vision-Projects-with-OpenCV4-and-CPlusPlus/Chapter02/sample1.cpp
Line 27 in f5aaab9