Ask Your Question

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:

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:

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

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

Question Tools


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

Seen: 407 times

Last updated: Dec 06 '12