im=zeros(384,256,64);
im(101:300,65:192,9:56)=16000;
im(151:250,129:160,25:40)=32000;
fip = fopen('osirixtestfile','w');
fwrite(fip,im,'uint16');
fclose(fip);
Now go into Osirix, and select File --> Import --> Import Raw Data
Find the file, and fill out the window as shown. Note the row/column ordering!
(Click to enlarge picture).
(Click to Enlarge)
At this point, note that you may have to try different endian (big/little) etc to get this to work just right!
After you import the data, you can find the images in your database, as shown
below:
(Click to Enlarge)
Selecting 2D/3D viewer should pop up a nice viewer that makes all of this worthwhile,
as shown below: