HomeEmissivity codeNon-Newtonian codeEasyDD codeMRI code

“MRI” is a program under construction with an objective to become a workbench for batch processing and analyzing Magnetic Resonance Imaging (MRI) data. The program is written in C++ programming language and uses a hybrid approach of procedural and object oriented programming. Currently, the program can read and process 2D binary image files with complex data in k-space obtained from MRI machines. The size of the data matrix is flexible, but for successful Fourier transform operation each one of the two dimensions of the data matrix must be an integral power of 2. This restriction will be lifted in the future. Each entry in the input binary file is a complex data consisting of real part followed immediately by an imaginary part with each one being of a float or a double data type. The program can handle little and big endian types. It can also deal with float and double data types. Currently the program can process data files of “.raw” extension, however it can be easily extended to other file extensions and made flexible according to the user choice. On reading the k-space data, it can be transformed to x-space by using a standard 2D Fast Fourier Transform (FFT). This is followed by a quadrant shift to obtain the image in x-space. The data obtained (i.e. real, imaginary, magnitude and phase) can then be written to ASCII text files and can be saved as image files in several formats (jpg, jpeg, png and bmp). The main functionality of the program in its current state is implemented in a main function which reads and processes all the raw data files found in the data directory. On invoking this main function, the program will automatically detect all the *.raw data files in the data directory and process them. The processed data (real, imaginary, magnitude and phase) can then be saved as text or image files to the data directory. These output files use in their names the name of the input raw data file as a prefix with proper descriptive extensions. The binary and documentation with a sample phantom image binary file can be downloaded from this link: MRI Program.