Thread: image to array

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    106

    image to array

    I need to turn .tiff images into an arrays. I am interested in how this is done for any image time. I have read into discrete transforms, but how would this be coded?

    Thanks in advance.
    -Chris

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Use an image manipulation library which removes you from having to deal with file formats.

    If you tell us your compiler, we might be able to suggest a compatible library.

    Or check out http://en.wikipedia.org/wiki/Tagged_Image_File_Format
    Read the specs to find out what each byte does.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    53
    You can check out libTIFF at http://www.remotesensing.org/libtiff. Depending on your platform, it may already be installed.

    --
    Computer Programming: An Introduction for the Scientifically Inclined

  4. #4
    Registered User
    Join Date
    Jun 2008
    Posts
    106
    G++ compiler

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple Image Processing
    By ejohns85 in forum C++ Programming
    Replies: 4
    Last Post: 03-19-2009, 12:10 PM
  2. Array of Pointers to Arrays
    By Biozero in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 02:31 PM
  3. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 07:48 PM
  4. Template Array Class
    By hpy_gilmore8 in forum C++ Programming
    Replies: 15
    Last Post: 04-11-2004, 11:15 PM
  5. Merge sort please
    By vasanth in forum C Programming
    Replies: 2
    Last Post: 11-09-2003, 12:09 PM