Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?

im using visual studio 2017

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?

im 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);

    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();

i'm using visual studio 2017

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

click to hide/show revision 4
None

updated 2018-05-28 01:43:56 -0600

berak gravatar image

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);

     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

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);

        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 problem occur when I hover my mouse to "Mat" from "Mat getImage"

i'm using visual studio 2017