Ask Your Question
0

Basic Thresholding Operations Tutorial

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

lilrate gravatar image

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

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 -0600

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

Question Tools

Stats

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

Seen: 540 times

Last updated: Dec 06 '12