int dsvd(float **a, int m, int n, float *w, float **v)
I know this isn't really game related but I thought there may be some people in here who can help me out.
I need to use Singular Value Decomposition as part of an object recognition program. I'm using this
source code to implement it.
I just have a quick question about the input matrix A. I'm not quite sure how the function is expecting the array to be constructed.
At the minute I have all my set of images (30 images, each 128x 128 pixels) in a 2D array as follows- myArray[30][16384]; where the [16384] part of the array is just the pixel value of every pixel in the image from top left to bottom right scanned row by row.
How do I convert this into the format that the SVD function requires?
Here is the function header:
Thanks very much for any help.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement