src/experiments/babybot/utils/src/YARPFft.cpp
void YARPFft::Convert2DoubleScaled (const unsigned char *in, double *out, int w, int h)
{
	const int size = w * h;
	for (int i = 0; i < size; i++)
	{
		*out++ = double (*in) / 255.0;
		in++;
	}
}
// helper functions.
// this is used to convert from std image type to double precision.
helper functions.
this is used to convert from std image type to double precision.
helper functions . this is used to convert from std image type to double precision .
void YARPFft::Convert2DoubleScaled (const unsigned char *in, double *out, int w, int h)
{
	const int size = w * h;
	for (int i = 0; i < size; i++)
	{
		*out++ = double (*in) / 255.0;
		in++;
	}
}
void YARPFft :: Convert2DoubleScaled ( const unsigned char * in , double * out , int w , int h ) { const int size = w * h ; for ( int i = 0 ; i < size ; i ++ ) { * out ++ = double ( * in ) / 255.0 ; in ++ ; } }
helper functions.
helper functions .