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 :)
Printable View
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 :)
So, which bit are you having trouble with exactly? Post some code (with code tags) so we can see how far you've got.
:)
He doesn't know C... hmmm...kinda sounds like HW actually
matrix = malloc( sizeof( type ) * size_x * size_y );
Presto change-o!
Quzah.