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. Other Discussions
  3. IT & Infrastructure
  4. need help with imaging

need help with imaging

Scheduled Pinned Locked Moved IT & Infrastructure
adobecsharphelptutorialquestion
4 Posts 2 Posters 0 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.
  • S Offline
    S Offline
    sarabjs
    wrote on last edited by
    #1

    am curious how imaging toolkits or even softwares like Adobe photoshop etc. operate on images. functions like binarize, blur etc. change every pixel on the image, and hence must visit every pixel at least once. yet, they only seem to take a fraction of a second to process even a large input image. on the other hand, say if i try and perform some pixel-level processing myself (using Pegasus ImagXpress, a .NET imaging toolkit), things seem to take a much longer time. as an example, for an input image of size 400x400 pixels, even merely visiting every pixel of the image just once using a nested loop (shown below) takes close to 2 seconds, a time value way more than i can afford. colour c; for i <- 1 to image.width { for j <- 1 to image.height { c = getPixel (i,j); } } is there a faster way in which an image pixel map can be processed (or even read) ? thanks... Sarab.

    C 1 Reply Last reply
    0
    • S sarabjs

      am curious how imaging toolkits or even softwares like Adobe photoshop etc. operate on images. functions like binarize, blur etc. change every pixel on the image, and hence must visit every pixel at least once. yet, they only seem to take a fraction of a second to process even a large input image. on the other hand, say if i try and perform some pixel-level processing myself (using Pegasus ImagXpress, a .NET imaging toolkit), things seem to take a much longer time. as an example, for an input image of size 400x400 pixels, even merely visiting every pixel of the image just once using a nested loop (shown below) takes close to 2 seconds, a time value way more than i can afford. colour c; for i <- 1 to image.width { for j <- 1 to image.height { c = getPixel (i,j); } } is there a faster way in which an image pixel map can be processed (or even read) ? thanks... Sarab.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      sarabjs wrote: say if i try and perform some pixel-level processing myself (using Pegasus ImagXpress, a .NET imaging toolkit), Why ? You can do pixel level processing in C# without any library - check out my image processing series in C# here on CP. sarabjs wrote: things seem to take a much longer time. Well, Photoshop is not written in C#, or even C++. It's in C. sarabjs wrote: colour c; for i <- 1 to image.width { for j <- 1 to image.height { c = getPixel (i,j); } } is there a faster way in which an image pixel map can be processed (or even read) ? Yes, read my articles on image processing. GetPixel is where your main performance hit is here. Christian Graus - Microsoft MVP - C++

      S 2 Replies Last reply
      0
      • C Christian Graus

        sarabjs wrote: say if i try and perform some pixel-level processing myself (using Pegasus ImagXpress, a .NET imaging toolkit), Why ? You can do pixel level processing in C# without any library - check out my image processing series in C# here on CP. sarabjs wrote: things seem to take a much longer time. Well, Photoshop is not written in C#, or even C++. It's in C. sarabjs wrote: colour c; for i <- 1 to image.width { for j <- 1 to image.height { c = getPixel (i,j); } } is there a faster way in which an image pixel map can be processed (or even read) ? Yes, read my articles on image processing. GetPixel is where your main performance hit is here. Christian Graus - Microsoft MVP - C++

        S Offline
        S Offline
        sarabjs
        wrote on last edited by
        #3

        Am reading your articles now... Thanks...

        1 Reply Last reply
        0
        • C Christian Graus

          sarabjs wrote: say if i try and perform some pixel-level processing myself (using Pegasus ImagXpress, a .NET imaging toolkit), Why ? You can do pixel level processing in C# without any library - check out my image processing series in C# here on CP. sarabjs wrote: things seem to take a much longer time. Well, Photoshop is not written in C#, or even C++. It's in C. sarabjs wrote: colour c; for i <- 1 to image.width { for j <- 1 to image.height { c = getPixel (i,j); } } is there a faster way in which an image pixel map can be processed (or even read) ? Yes, read my articles on image processing. GetPixel is where your main performance hit is here. Christian Graus - Microsoft MVP - C++

          S Offline
          S Offline
          sarabjs
          wrote on last edited by
          #4

          The articles are great! Thanks man... Sarab.

          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