Image reading and writing

This is a discussion on Image reading and writing within the C++ Programming forums, part of the General Programming Boards category; Dear all! I have intensity values of an image in a 2D matrix array. I want to save this information ...

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    1

    Post Image reading and writing

    Dear all!

    I have intensity values of an image in a 2D matrix array. I want to save this information in the form of an image (.jpeg,bmp,tiff etc). Now each of these image formats have a specific file structure.
    Can you people guide me, from where I can get the library or function that takes the intensity information in an array and writes them into image file? and similarly i also want the reverse of this, i.e. reads the intensity values from image file and writes them into an array.

  2. #2
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    4,415
    O_o

    So, you have an unspecified form of intensity for which you want a magic function to dump into various images format?

    Good luck finding such a beast.

    On the other hand, if you are willing to do some work yourself, you could always throw "C++ image file libraries" at your favorite search engine and come back to ask questions if you have trouble with the logic of using such libraries.

    Soma
    Last edited by phantomotap; 05-23-2011 at 11:08 AM. Reason: none of your business

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,022
    I'd say Qt. QImage and its related set of classes will probably help you.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing to a image to a wav file?
    By Anddos in forum Windows Programming
    Replies: 3
    Last Post: 11-30-2009, 06:48 PM
  2. Reading an image
    By drrcknlsn in forum C++ Programming
    Replies: 2
    Last Post: 01-27-2008, 10:21 PM
  3. writing an image
    By cisokay in forum C Programming
    Replies: 3
    Last Post: 05-20-2005, 03:03 AM
  4. Writing Compressed Image Files
    By BenBartle in forum C++ Programming
    Replies: 1
    Last Post: 03-09-2005, 08:55 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21