Re: Converting Bitmap into 2D-Array
- From: "Giovanni Dicanio" <giovanni.dicanio@xxxxxxxxxxx>
- Date: Thu, 21 Feb 2008 19:34:28 +0100
"Giovanni Dicanio" <giovanni.dicanio@xxxxxxxxxxx> ha scritto nel messaggio
news:eOTK0fLdIHA.536@xxxxxxxxxxxxxxxxxxxxxxx
// CImage img;
Matrix2D<float> grayScale; // output
ExtractGrayScaleFromImage( img, grayScale );
BTW: And if you want to copy gray scale data into a std::vector, you can
just do:
std::vector< float > v;
grayScale.CopyRowwise( v );
And then pass your vector (or a pointer to vector's data like &(v[0]) ), to
your FFT function.
Giovanni
.
- References:
- Converting Bitmap into 2D-Array
- From: Lucress Carol
- Re: Converting Bitmap into 2D-Array
- From: Norbert Unterberg
- Re: Converting Bitmap into 2D-Array
- From: Lucress Carol
- Re: Converting Bitmap into 2D-Array
- From: Giovanni Dicanio
- Converting Bitmap into 2D-Array
- Prev by Date: Re: How to read Unicode(Big-Endian) text file(s) in Non-MFC
- Next by Date: Re: msvc*.dll loading
- Previous by thread: Re: Converting Bitmap into 2D-Array
- Next by thread: Re: Converting Bitmap into 2D-Array
- Index(es):