problem with .mat to .vtk format

조회 수: 3 (최근 30일)
Chathu
Chathu 2016년 4월 8일
댓글: Chathu 2016년 4월 19일
I want to convert .mat files to .vtk format. Is it possible ? But how ?
  댓글 수: 2
Pritesh Shah
Pritesh Shah 2016년 4월 8일
In file exchanger, the code is available. Please check following link http://www.mathworks.com/matlabcentral/fileexchange/23416-writetovtk
Chathu
Chathu 2016년 4월 8일
편집: Chathu 2016년 4월 9일
Thank you so much for your rapid response, Pritesh. Highly appreciate it. Unfortunately, my images are 2D images (above mention code only works for 3D images) and they are saved in .mat format (after the segmmentation).
Hence, how to convert 2D .mat files to 3D .mat files. Can anyone kindly give me a clue for that so then i can use the above code.
Anyhow Pritesh, your quick response for my original question is highly admired.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2016년 4월 9일
  댓글 수: 3
Walter Roberson
Walter Roberson 2016년 4월 9일
If you mean can you add it to the .mat file, then Yes: load the file, change the variable, save back to the file again.
If you mean can you add the column to what you are exporting to VTK, then I do not know.
Chathu
Chathu 2016년 4월 9일
I meant to the .mat file. That answered my qu. Thanks Walter :)

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Pritesh Shah
Pritesh Shah 2016년 4월 9일
In file exchanger, the code is available. Please check following link http://www.mathworks.com/matlabcentral/fileexchange/23416-writetovtk
  댓글 수: 1
Chathu
Chathu 2016년 4월 19일
Hi, i know i am little late to write to this but unfortunately i do not get the converted vtk file using the above code (Tim's code).I know it should work, but i don't understand why i am not getting it though. Can anyone guide me to detect the problem? (ps:i am writing here coz its related to this topic).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by