if (nbChannelOriginImage!=CV_8UC1 && nbChannelOriginImage!=CV_8UC3)\r
return;\r
\r
- //if (mouseCoordinate.x()>=0 &&\r
- // mouseCoordinate.y()>=0 &&\r
- // mouseCoordinate.x()<image2Draw_qt.width() &&\r
- // mouseCoordinate.y()<image2Draw_qt.height())\r
- if (mouseCoordinate.x()>=0 && mouseCoordinate.y()>=0)\r
+ if (mouseCoordinate.x()>=0 &&\r
+ mouseCoordinate.y()>=0 &&\r
+ mouseCoordinate.x()<image2Draw_qt.width() &&\r
+ mouseCoordinate.y()<image2Draw_qt.height())\r
+// if (mouseCoordinate.x()>=0 && mouseCoordinate.y()>=0)\r
{\r
QRgb rgbValue = image2Draw_qt.pixel(mouseCoordinate);\r
\r