Export Data from Matlab to Text Files

Hello
Working on a segmentation of 3D CT images.
I want to know Please
  • what's the best software for 3D visualization for these images
  • How to save these images (3D matrix 1536x1536x1101) into a file .txt
Does this code is the best to save it
if true
fid=fopen('data.txt','wt');
fprintf(fid,'%d %d %d\n',Matrix3D);
fclose(fid);
end
Please if you have any idea let me know.
Thank you

3 commentaires

dpb
dpb le 7 Juil 2014
...these images (3D matrix 1536x1536x1101) into a file .txt
Why would you even think of saving image files as text? Use an appropriate image format or if staying in Matlab maybe a .mat or even stream via fwrite but NOT ASCII.
Haykel
Haykel le 8 Juil 2014
Thankx for you comment. In fact I would to save these images files as text to use it in 3D visualization .
dpb
dpb le 9 Juil 2014
no, No, NO, NO, NO!!!!

Connectez-vous pour commenter.

 Réponse acceptée

Mads
Mads le 7 Juil 2014

0 votes

One usual format for medical images such as yours is DICOM. You can try and use the matlab functions for DICOM editing/storage etc. and then you might want to use Osirix for viewing or other 3D features. Fx segmentation...
Probably you got the CT data from DICOM? or what format was that?
Also check the programme ITK-Snap

1 commentaire

Haykel
Haykel le 8 Juil 2014
Thankx for your reply. I get CT data (.ISQ) from an external hard drive.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur DICOM Format dans Centre d'aide et File Exchange

Question posée :

le 7 Juil 2014

Commenté :

dpb
le 9 Juil 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by