필터 지우기
필터 지우기

Converting .txt files to .tif files?

조회 수: 2 (최근 30일)
RB
RB 2017년 10월 10일
댓글: KSSV 2017년 10월 11일
Hello! I currently have 200 .txt files. However, I need to be able to open them in ImageJ as virtual stacks as images. To save time, I was wondering if there was a code that could turn .txt files into .tif files. Also to be more specific, I was able to save some .txt files as .tif files, however when opened in ImageJ an error message appeared saying ImageJ could not open .tif files with compression. Therefore, I am assuming I need these files to be saved as uncompressed .tif files?
Or another option... My code that saves the .txt files saves 18 arrays as .txt files in 18 different folder locations. It would also be possible to just save them as .tif files from the start. However, I tried this and imwrite command does not seem to like the combination with the code that saves the array to a specific folder. I am not sure which solution would be easier and any help would be greatly appreciated! Thank you!
  댓글 수: 2
OCDER
OCDER 2017년 10월 10일
I would go straight for saving as tif, as opposed to saving as txt, converting it to tif, and then saving again as tif (too many codes to manage, which makes room for bugs and headaches).
"However, I tried this and imwrite command does not seem to like the combination with the code that saves the array to a specific folder."
Let's start here. What code do you have? Why is this causing an issue? And why do you need to save this to 18 folders?
KSSV
KSSV 2017년 10월 11일
It depends what data you have in text files...tell us more about your text files data.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by