|
From: | John Swensen |
Subject: | Fast copy of buffer data into a matrix |
Date: | Thu, 08 Feb 2007 10:49:48 -0500 |
User-agent: | Thunderbird 2.0a1 (X11/20060807) |
Matrix ret_img( settings.height, settings.width ); for( int i = 0 ; i < settings.height, settings.width ; i++ ) ret_img(i) = imagebuffer[i]; where imagebuffer is an array of uint8_t.I have searched around a bit, but can't find a way of just doing a memcpy into the Matrix object, rather than my slow existing implementation. Any suggestions?
John Swensen
[Prev in Thread] | Current Thread | [Next in Thread] |