Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Basic Thresholding Operations Tutorial

Hello. I am trying the tutorial:

http://docs.opencv.org/doc/tutorials/imgproc/threshold/threshold.html

When I compile and run the code, I get the following error message:

OpenCV Error: Assertion failed (scn == 3 || scn == 4) in unknown function, file ......\src\opencv\modules\imgproc\src\color.cpp, line 3326

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

I am using the image from the tutorial: http://docs.opencv.org/_images/Threshold_Tutorial_Original_Image.jpg

Do you have any suggestions? I am using OpenCV 2.4.3 with Visual Studio 2005 on Windows 7. Thank you.

Basic Thresholding Operations Tutorial

EDIT: I figured it out. I had set a wrong PATH for my new installation of OpenCV.

Hello. I am trying the tutorial:

http://docs.opencv.org/doc/tutorials/imgproc/threshold/threshold.html

When I compile and run the code, I get the following error message:

OpenCV Error: Assertion failed (scn == 3 || scn == 4) in unknown function, file ......\src\opencv\modules\imgproc\src\color.cpp, line 3326

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

I am using the image from the tutorial: http://docs.opencv.org/_images/Threshold_Tutorial_Original_Image.jpg

Do you have any suggestions? I am using OpenCV 2.4.3 with Visual Studio 2005 on Windows 7. Thank you.