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 / C++ / MFC
  4. Open image file for processing;

Open image file for processing;

Scheduled Pinned Locked Moved C / C++ / MFC
questionperformance
2 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.
  • B Offline
    B Offline
    Bo Hunter
    wrote on last edited by
    #1

    What is the best way to open a image file and get access to the raw bytes of the image so that I can apply various algorithms from Intel's IPP library. Also what about allocating the wright ammout of memory? Can I just use GetFileSize or the like to get the required size of the buffer? Thank You Bo Hunter

    A 1 Reply Last reply
    0
    • B Bo Hunter

      What is the best way to open a image file and get access to the raw bytes of the image so that I can apply various algorithms from Intel's IPP library. Also what about allocating the wright ammout of memory? Can I just use GetFileSize or the like to get the required size of the buffer? Thank You Bo Hunter

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      depends on what kind of image you want to load... loading a BMP file is really easy, you have to read the header, allocate memory for the bitmap and read the rest of the file. Don't try it, just do it! ;-)

      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