Thread: Read Image to a Matrix

  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, 05: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, 07:57 PM