Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. c# or c++ image processing?

c# or c++ image processing?

Scheduled Pinned Locked Moved C#
csharpc++winformsgraphicsperformance
4 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jon Hulatt
    wrote on last edited by
    #1

    My app (which is part c++/cli and part c#) generates bitmaps on the fly, and they exist in memory initially as arrays of unsigned char (width * height * 3 bytes (rbg)). I need to be able to crop, resize, rotate (90, 180 degrees), mirror and flip these images in an efficient way. I've previously used GDI+, but GDI+ has some serious threading issues (although it allows multiple threads, only one thread per process actually gets executed by GDI+ at a time). So i need a replacement image processing library. I looked at CImg, but internally it organises data into separate arrays, one per colour channel, which would make it a headache to get my data into and out of the library. is anyone familiar with any other libraries which will meet my needs? could be c# or c++, it doesn't really matter.

    using System.Beer;

    L 1 Reply Last reply
    0
    • J Jon Hulatt

      My app (which is part c++/cli and part c#) generates bitmaps on the fly, and they exist in memory initially as arrays of unsigned char (width * height * 3 bytes (rbg)). I need to be able to crop, resize, rotate (90, 180 degrees), mirror and flip these images in an efficient way. I've previously used GDI+, but GDI+ has some serious threading issues (although it allows multiple threads, only one thread per process actually gets executed by GDI+ at a time). So i need a replacement image processing library. I looked at CImg, but internally it organises data into separate arrays, one per colour channel, which would make it a headache to get my data into and out of the library. is anyone familiar with any other libraries which will meet my needs? could be c# or c++, it doesn't really matter.

      using System.Beer;

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Jon Hulatt wrote:

      only one thread per process actually gets executed by GDI+ at a time

      Interesting. Do you have a link to that information?

      J 1 Reply Last reply
      0
      • L led mike

        Jon Hulatt wrote:

        only one thread per process actually gets executed by GDI+ at a time

        Interesting. Do you have a link to that information?

        J Offline
        J Offline
        Jon Hulatt
        wrote on last edited by
        #3

        sure. http://social.msdn.microsoft.com/forums/en-US/winforms/thread/25cceaa4-f058-482a-8381-03698f73651a/[^]

        using System.Beer;

        L 1 Reply Last reply
        0
        • J Jon Hulatt

          sure. http://social.msdn.microsoft.com/forums/en-US/winforms/thread/25cceaa4-f058-482a-8381-03698f73651a/[^]

          using System.Beer;

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Do you know that person? I mean that is certainly not authoritative. I would consider this[^], a more reliable source. Note that he speaks specifically about Vista. I have no idea if previous implementations are identical in this regard.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups