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. ICM TranslateColors Problems

ICM TranslateColors Problems

Scheduled Pinned Locked Moved C / C++ / MFC
1 Posts 1 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.
  • K Offline
    K Offline
    Kurt 0
    wrote on last edited by
    #1

    Has anyone successfully used ICM? I’m trying to write some color correction software using ICM and am running into what appear to be major bugs. I have the same software running on the Macintosh with ColorSync (the Macintosh equivalent of ICM) very well. If anyone does know ICM I’d really like to hear what you think of the following problems: Originally, my calls to TranslateColors would often crash. I was passing arrays of the ICM COLOR structure along with pixel counts. After hours of pouring through all code and documentation, I debugged into ICM's 80x86 assembly code and found that it expects 16 bytes per pixel. The COLOR structures are only 8 bytes per pixel so this doesn't make any sense. I can work around this immediate problem by allocating twice as much space for my buffers as necessary but this is a strong warning sign that either I’m doing something seriously wrong or that the current release of ICM isn’t usable. My image comes through roughly correctly which indicates that I’m formatting my pixel data as ICM is expecting it. However I often get strong bizarre casts in the images I get back from TranslateColors. Especially when going from CMYK to RGB, the images look terrible. Is anyone aware of sample code that uses TranslateColors? Is anyone aware of free software that will use ICM (preferably through TranslateColors) on an image? Are there any other Internet resources for ICM development? Thanks, Kurt

    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