[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libcvd-members] Windows issues

From: Simon Taylor
Subject: Re: [libcvd-members] Windows issues
Date: Fri, 27 May 2011 10:29:50 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110424 Thunderbird/3.1.10

The exception just means the file couldn't be opened. You can get a bit more information:

  Image<double> in = img_load("frog.bmp");
catch(CVD::Exceptions::Image_IO::OpenError ex)
  cout << "Open Error: " << ex.what << endl;

The common cause of that one is just the file path being incorrect.

I wonder why you're opening a bmp as an Image of doubles? I wasn't aware that bmp could support any kind of high definition formats - Image<byte> is generally what you want for 8-bit greyscale, or Image<Rgb<byte> > for 24-bit RGB.

Hope that helps


On 27/05/11 09:57, Downey, Frances wrote:
Hi all

How are we all. I'm having some issues with libCVD. It was all working and then 
I updated. It's got something to do with the changes made on the 13th, 16th, 
20th or 21st May. LibCVD is still compiling, but when I use the functions in 
the programme I get an error. Here is my programme


using namespace CVD;
using namespace std;

int main()

        cout<<  "at least we got here"<<  endl;
        Image<double>  in = img_load("frog.bmp");

        img_save(in, "newfrog.bmp");

        cout<<  "help help help"<<  endl;


When the programme gets to Image<double>  in = img_load("frog.bmp"); I get the following 
warning "Unhandled exception at 0x7c812afb in Frog 2.exe: Microsoft C++ exception: 
CVD::Exceptions::Image_IO::OpenError at memory location 0x0012fa74.."


Frances Downey
Randall Division of Cell and Molecular Physics
King's College London
3rd Floor, New Hunt's House
Guy's Campus
London SE1 1UL

Tel: 020 7848 6519
Mob: 07737 488 348

libcvd-members mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]