Ask Your Question
0

Basic Thresholding Operations Tutorial

asked 2012-11-13 17:38:22 -0500

lilrate gravatar image

updated 2012-11-13 17:58:13 -0500

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-12-06 18:00:54 -0500

khounslo gravatar image

Hi there, I made a YouTube tutorial on how to install v2.4.3 using precompiled libraries. Many people have found it useful. Click here.

For a thresholding sample code click here. There's a link to the .cpp file there

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-11-13 17:38:22 -0500

Seen: 365 times

Last updated: Dec 06 '12