Read Image to a Matrix

This is a discussion on Read Image to a Matrix within the C Programming forums, part of the General Programming Boards category; Hi, i need to read an Image from user to a matrix in my C program. I will create a ...

  1. #1
    Registered User scrapedbr's Avatar
    Join Date
    May 2003
    Posts
    19

    Read Image to a Matrix

    Hi, i need to read an Image from user to a matrix in my C program. I will create a new convolution matrix, using this.
    The problem is, i can't define the matrix before read the image. I don't know about C language.. any help is welcome
    cscience.org
    gobolinux.org
    Gobolinux user: 00101100

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    So, which bit are you having trouble with exactly? Post some code (with code tags) so we can see how far you've got.

    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    He doesn't know C... hmmm...kinda sounds like HW actually
    Away.

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    matrix = malloc( sizeof( type ) * size_x * size_y );

    Presto change-o!

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. *operator overloading: scalar matrix multiplication
    By gemini_shooter in forum C++ Programming
    Replies: 4
    Last Post: 06-08-2009, 01:14 PM
  2. Matrix Help
    By HelpmeMark in forum C++ Programming
    Replies: 27
    Last Post: 03-06-2008, 04:57 PM
  3. matrix class
    By shuo in forum C++ Programming
    Replies: 2
    Last Post: 07-13-2007, 01:03 AM
  4. Weird errors.
    By Desolation in forum C++ Programming
    Replies: 20
    Last Post: 05-09-2007, 01:10 PM
  5. Replies: 1
    Last Post: 03-06-2006, 06:57 PM

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