cv::Mat make VS 2017 Freeze when hovered
hey,
I'm new to OpenCV, and i encountered with weird bug...
somehow, when I hover the mouse to cv::Mat, my visual studio just go freeze. the only way I can fix it is either closed the program,
is there any fix regarding this issue?
let me elaborate the problems more,
using namespace std;
using namespace cv;
int main()
{
std::vector<uchar> array;
enter code here
Mat getImage = imread("image.jpg", CV_LOAD_IMAGE_GRAYSCALE);
if (!getImage.data)
{
{
cout << "Could not open or find the image" << std::endl;
}
}
else
{
{
//imshow("Open an Image", getImage);
getImage);
if (getImage.isContinuous()) {
array.assign(getImage.datastart, getImage.dataend);
}
else {
for (int i = 0; i < getImage.rows; ++i) {
array.insert(array.end(), getImage.ptr<uchar>(i), getImage.ptr<uchar>(i) + getImage.cols);
}
}
}
cvWaitKey(0);
destroyAllWindows();
the issue comes when i hover my mouse cursor to "Mat" on "Mat getImage"
i'm using visual studio 2017