Skip to main content
GameDev.net gamedev.net
🔒 Locked

SVD

Started by mpledge52 Mar 11, 2008 at 6:22 AM 0 replies 600+ views
Original Post
mpledge52
mpledge52
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:

int dsvd(float **a, int m, int n, float *w, float **v)

Thanks very much for any help.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.