Ben McIntosh

Show:

What's happening?

  • Followup: RE: Pixelate / Bin Image

    Thanks, Michael. That looks like a smart way of doing it! It works but the crop parameters are actually (x0, y0, x1, y1) so the code should read: small(x,y) = I.get_crop(B*x,B*y,B*(x+1)-1,B*(y+1)-1).mean();.

    2009-07-07 23:10:08 UTC in The CImg Library

  • Pixelate / Bin Image

    I am trying to pixelate an image such that each region of the image corresponds to the average of a certain number of surrounding pixels. For example, I would like to take a 256x256 grayscale image and produce another 256x256 grayscale image that only contains 16x16 blocks. Sometimes this is also called image binning. I figured that one way of doing this would be to downsample the 256x256...

    2009-07-07 22:31:58 UTC in The CImg Library

  • Followup: RE: CImg on Windows CE

    Okay I got this to compile for Windows CE in a bit of a hackish way. Just please let me know if you think this will break anything. Windows CE does not support system(), getenv(), or remove(). I started by changing cimg_OS to 0, then: _____________________________________________ LINE 4539: Removed return cimg_std::system(command); _____________________________________________...

    2009-07-02 03:27:12 UTC in The CImg Library

  • Followup: RE: CImg on Windows CE

    And here is the list of errors when setting cimg_OS = 2 and cimg_display = 0: CImg.h(4527) : error C3861: 'GetStartupInfo': identifier not found CImg.h(4539) : error C2039: 'system' : is not a member of 'std' CImg.h(5070) : error C3861: 'GetShortPathNameA': identifier not found CImg.h(5096) : error C3861: 'getenv': identifier not found CImg.h(5097) : error C3861: 'getenv': identifier not...

    2009-07-02 00:11:17 UTC in The CImg Library

  • Followup: RE: CImg on Windows CE

    It looks like some of my problems stem from the same place at this forum: https://sourceforge.net/forum/forum.php?thread_id=3312623&forum_id=334630 That should get me started I think.

    2009-07-02 00:01:57 UTC in The CImg Library

  • Followup: RE: CImg on Windows CE

    I made a little progress. I discovered that the file winnetwk.h is included in the OS if the following option is included in the catalog from platform builder: "Windows Networking API/Redirector (SMB/CIFS)" After adding that and recompiling the OS, I no longer get the include error. Here is a list of errors I get when compiling with cimg_OS = 2 (Windows): CImg.h(4526) : error...

    2009-07-01 23:06:50 UTC in The CImg Library

  • Followup: RE: CImg on Windows CE

    The first major roadblock is at line 138 of CImg.h version 1.3.1. It tries to include "shlobj.h" but this header itself throws an error because it can't find winnetwk.h of its own includes. This only happens when trying to compile for the embedded device and no problem for a standard Win32 application. Do you know exactly what shlobj and winnetwk are doing and why that would be a...

    2009-07-01 21:30:57 UTC in The CImg Library

  • CImg on Windows CE

    I would love to compile CImg into an embedded platform application but I get dozens of errors when compiling the main header file. I have tried setting the defines to both Windows and Unknown operating systems, but both have major problems. Has anyone successfully compiled CImg for Windows CE or any other embedded OS for an ARM processor? (I am using TI's OMAP processor) I thought I would ask...

    2009-06-23 00:57:57 UTC in The CImg Library

About Me


Send me a message