In C++, I write a float image into a file:
FILE* fp = fopen("image.fft", "wb");
float* pixels = getPixel();
fwrite((unsigned char*)pixels, sizeof(pixels), width*height, fp);
For analyzing the image, we need to read the float image into C#. I am stuck with how to read the float image “image.fft” into C#. I know the size width and height of the float image.
You could use this bimap constructor http://msdn.microsoft.com/en-us/library/zy1a2d14.aspx , just use GCHandle to byte array from file to get IntPtr or something like this: