Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8269671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:18:25+00:00 2026-06-08T06:18:25+00:00

I have recently setup openCV 2.3.1 in Visual Studio 2010. I set it up

  • 0

I have recently setup openCV 2.3.1 in Visual Studio 2010. I set it up using cmake and managed to run simple ‘hello world’ code as follows:

            #include "stdafx.h"

            #include <opencv2/opencv.hpp>
            #include <cxcore.h>
            #include <highgui.h>

            int _tmain(int argc, _TCHAR* argv[])
            {
                 IplImage *img = cvLoadImage("funny-pictures-cat-goes-pew.jpg");
                 cvNamedWindow("Image:",1);
                 cvShowImage("Image:",img);

                 cvWaitKey();
                 cvDestroyWindow("Image:");
                 cvReleaseImage(&img);

                 return 0;
             }

This code was able to run for the first time, though it was displaying a grey image instead of the cat. As I was trying to see whts wrong, it started giving the following error; Unhandled Exception at a certain memory location…:![enter image description here][1](can’t upload image because of low reputation points. But I hope you understood my problem description…

Regards,
Ruzzar

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:18:27+00:00Added an answer on June 8, 2026 at 6:18 am

    Can you please recheck that the *img is being properly filled out?

    I just tested this, with the single change that my path to the image is absolute (IplImage *img = cvLoadImage("D:\\Development\\TestProjects\\OpenCVTest\\funny-pictures-cat-goes-pew.jpg");), aside from that its the same. It worked perfectly fine on my system here.

    OpenCV 2.4.2 used, image from
    http://i288.photobucket.com/albums/ll169/critterclaw101/funny/funny-pictures-cat-goes-pew.jpg

    Edit: when testing with a wrongly set path, I get a grey image, thus I am sure that your code cannot find the image.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently setup a WCF service using Visual Studio 2010. The service is hosted
just simple question, recently i have setup a web server to build project using
I have recently setup a spring + hibernate project. I am using oracle DB.
We have a geeklog managed site running at http://bhaa.ie We recently setup a zend
I have recently setup TFS 2010 and am trying to access the reporting feature.
I have a rails environment which I set-up with macports. I recently updated macports
I have recently began using C# to invoke powershell scripts, with some success :)
I have recently started using Netbeans with following stack Liferay, icefaces with jBoss. Is
I have recently setup XAMPP 1.7.3 and ZendFramework 1.10.4 on a new computer and
i am on windows/apache/mysql/php setup. i have recently reinstalled PHP. but i found that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.