Results 1 to 2 of 2

Thread: Image Processing

  1. #1
    Member Contributor
    Join Date
    Jul 2006

    Image Processing


    Firstly I'm a total novice with respect to 'modern' OpenGL! I have played with GL1.0 quite a bit though.

    I writing an image processing application - basically a camera raw converter + photo related processing - and I'm not sure whether to use the CPU for all processing or maybe use the GPU.

    Camera raw data is 12 bits per channal, which will be expanded to 48 or 64 bit (16 bits per channel). Then the usual processing will be performed - levels, curves, colour manipulation, sharpening etc - using a layering concept similar to photoshop et al.

    Would the GPU offer performance advantages over the CPU?
    Do most cards (including my FX5200) support 16 bit per channel images?

    If the answer to the above is yes, can someone give me some pointers as to what I should be doing to support 16 bpc images (textures!) and anything else you think is relevant?

    Many thanks

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000

    Re: Image Processing

    Current hardware does not support rendering to integer RGBA formats with more than 8 bits per channel (32bits) and also textures with integer formats and more than 32 bits are seldom.
    But there are floating point formats like RGBA16F and RGBA32F.
    FP16 formats have only 10 bits of precision so you might not want to use that for 12 or 16 bit input data. But it's an otherwise nice format because it is identcal to the OpenEXR image format often used for high dynamic range (HDR) effects.
    FP32 would be the most precise format, but has some rendering caveats (no texture filtering, no blending) but you can implement that in fragment programs yourself.

    Since you have an NVIDIA board, start delving into the various examples in the NVSDK to be found on
    Make sure you read the GPU Programming Guide there.
    Be warned, a GF5200 is rather mediocre in fragment shading performance.
    Well, a GPU normally beats a CPU in graphics processing.

    Also check for general purpose processing on a GPU. Simple image filter examples should be there as well.

Similar Threads

  1. help on image processing
    By Stiliyan in forum OpenCL
    Replies: 1
    Last Post: 09-24-2014, 06:19 AM
  2. CPU + GPU processing of same image
    By chanakya.sun in forum OpenCL
    Replies: 2
    Last Post: 02-09-2012, 11:01 AM
  3. which one is fit for image processing?CPU or GPU?
    By pango in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 09-14-2004, 11:00 PM
  4. Image Processing : glConvolutionFilter2D
    By lhomme in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 10-13-2002, 01:20 AM
  5. Image processing
    By lhomme in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 05-24-2001, 10:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean