public static void realToComplex(GrayF32 real , InterleavedF32 complex ) {
		checkImageArguments(real,complex);
		for( int y = 0; y < complex.height; y++ ) {

			int indexReal = real.startIndex + y*real.stride;
			int indexComplex = complex.startIndex + y*complex.stride;

			for( int x = 0; x < real.width; x++, indexReal++ , indexComplex += 2 ) {
				complex.data[indexComplex] = real.data[indexReal];
				complex.data[indexComplex+1] = 0;
			}
		}
	}
public static void realToComplex ( GrayF32 real , InterleavedF32 complex ) { checkImageArguments ( real , complex ) ; for ( int y = 0 ; y < complex . height ; y ++ ) { int indexReal = real . startIndex + y * real . stride ; int indexComplex = complex . startIndex + y * complex . stride ; for ( int x = 0 ; x < real . width ; x ++ , indexReal ++ , indexComplex += 2 ) { complex . data [ indexComplex ] = real . data [ indexReal ] ; complex . data [ indexComplex + 1 ] = 0 ; } } }
Converts a regular image into a complex interleaved image with the imaginary component set to zero.

@param real (Input) Regular image.
@param complex (Output) Equivalent complex image.