Mauro_Ferro

Show:

What's happening?

  • Followup: RE: cimg resize with window

    Hi, this code lets to handle the display resizing: // enter the event loop, the code will exit when the display windows is closed while ( !this->display.is_closed ) { // wait for an event (mouse, keyboard,...) in the display window this->display.wait(25); /** * other code */ // resize if it needs if (...

    2009-08-04 13:24:30 UTC in The CImg Library

  • Followup: RE: Unexpected apppend behaviour

    Hi, I think CImg loads images, i2 and i3, as grayscale. If this is right, i2.dim and i3.dim are equal to 1. So you can write this to convert from grayscale to RGB: i2.resize(-100,-100,1,3); i3.resize(-100,-100,1,3); I hope this can help you. Mauro.

    2009-08-04 10:40:46 UTC in The CImg Library

  • Followup: RE: ImageMagick and CIMG

    Errata corrige: Release dll files (of course add it in debug folder) is wrong! Debug dll files...

    2009-07-08 22:44:49 UTC in The CImg Library

  • Followup: RE: ImageMagick and CIMG

    Hi Larri, sorry if I'm in late... I will explain better what I did. - dll and lib generation - First, as I said, you must download the ImageMagick sources ( http://www.imagemagick.org/script/install-source.php#windows ) and copy the unzipped folder, i.e. ImageMagick-6.5.2, in C:\. Run the exe file C:\ImageMagick-6.5.2\VisualMagick\configure\configure.exe without change in settings...

    2009-07-08 22:40:54 UTC in The CImg Library

  • Followup: RE: ImageMagick and CIMG

    Hi, yes, you'll have to compile them yourself. I read your other post about .tiff... well if you follow my suggestion you'll be able to load (and save) also .tif and .tiff. The guide is a little scary, but I used it both for debug and release .dll so you can use it with your purposes... just a little patience! Mauro.

    2009-07-06 15:10:41 UTC in The CImg Library

  • Followup: RE: ImageMagick and CIMG

    Hi Larri, I used ImageMagick with a VC++ 2008 Express project. In my project I used ImageMagick dll files for loading/saving bmp, png, gif... First of all you must add: #define cimg_use_magick that enables the library support. If you want use ImageMagick binary release, you just need to use the CImg "load" method (no need to include ImageMagick++.h and so on) If you want...

    2009-07-04 13:06:23 UTC in The CImg Library

  • Followup: RE: How to access pixel values(R,G,B) of an image

    Hi, CImg<unsigned char> MyImage; ... // get a channel (CImg< T > &) MyImage.channel(channel_number); // or // get a channel (CImg< T >) MyImage.get_channel(channel_number); I suggest you these links for introduction and reference guide: http://cimg.sourceforge.net/CImg_slides.pdf http://cimg.sourceforge.net/CImg_reference.pdf (on line reference...

    2009-06-12 09:02:13 UTC in The CImg Library

  • Followup: RE: How to add CImg lib. on MS Visual Studio C++

    Hi, I think you have forgotten the image file path. Mauro.

    2009-06-09 16:18:29 UTC in The CImg Library

  • Followup: RE: How to add CImg lib. on MS Visual Studio C++

    Hi, I tried your code with a CLR empty project in VC++ 2008 express, but have no error in compiling. However if you don't need a .NET form application, the best way is a Win32 console application as Rayhan has suggested, because the set up of a mixed application (with managed and unmanaged code) is a little more difficult... many linking errors to solve... Mauro.

    2009-06-08 14:31:10 UTC in The CImg Library

  • Followup: RE: How to add CImg lib. on MS Visual Studio C++

    Hi, I used CImg with vc++ 2008 What vc version are you using? Write all the errors you have, so I will try to give you a full help. Mauro.

    2009-06-05 08:27:23 UTC in The CImg Library

About Me

  • 2007-03-13 (3 years ago)
  • 1742263
  • mauferro (My Site)
  • Mauro_Ferro

Send me a message