From: Risco M. <u2...@li...> - 2009-06-13 21:12:02
|
I have been working on the examples in the vil/examples folder. I have a problem with the "example_rgb.cxx" code as the program fails to load the image. I have tried to put the image file, "ff_rgb8bit_ascii.ppm", in the same folder but no luck. Here is the code " #include <vcl_iostream.h> #include <vxl_config.h> #include <vil/vil_rgb.h> #include <vil/vil_load.h> #include <vil/vil_image_view.h> int main() { // Load image into memory. vil_image_view<vil_rgb<vxl_byte> > img = vil_load("../tests/file_read_data/ff_rgb8bit_ascii.ppm"); // Access pixel (1,2) and print its value as an int. vcl_cerr << "Pixel 1,2 = " << img(1,2) << vcl_endl; return 0; } " Here is the error I get when debugging it (gdb) run Starting program: /home/Risco/Cxx/ComputerVision/VXL/Project/Test/myfi_ex Specify an image filename Program exited with code 03. Missing separate debuginfos, use: debuginfo-install libjpeg-6b-43.fc10.i386 libpng-1.2.35-1.fc10.i386 libtiff-3.8.2-11.fc10.i386 zlib-1.2.3-18.fc9.i386 " I traced the program, the smart pointer is always zero. Another interesting point is that the other examples such as example1.cxx, example2.cxx are working fine even if i still get the message " Missing separate debuginfos, use: debuginfo-install libjpeg-6b-43.fc10.i386 libpng-1.2.35-1.fc10.i386 libtiff-3.8.2-11.fc10.i386 zlib-1.2.3-18.fc9.i386 " I am programming on fedora 10. Thank you in advance. _________________________________________________________________ Get the best of MSN on your mobile http://clk.atdmt.com/UKM/go/147991039/direct/01/ |