How to save a figure displayed in to a folder?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have 2 dicom image and I subtract them from each other.Now I want to save the subtracted one in to a folder, but I don't know which type should I choose for saving the image and what should I write for this. My image is a gray scale image and its size is 256*256 . and I have 160 images that I want to save. what should I do? Thanks.
댓글 수: 0
답변 (1개)
Image Analyst
2014년 4월 14일
Since the subtraction can have positive and negative numbers, using uint8 or uint16 is out of the question. I don't know about dicom since I don't use that format. Can it save negative numbers? What are you going to do with the images after you save them? Use them only in MATLAB? If so, then why not just save the image variables as .mat files with save()? If you need other apps, like Photoshop or imageJ, to be able to read them in then you'll have to find a standard image format that takes negative numbers, like maybe TIFF.
댓글 수: 4
Image Analyst
2014년 4월 15일
See the FAQ for code examples for how to do all 1600 images in a loop. http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
참고 항목
카테고리
Help Center 및 File Exchange에서 DICOM Format에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!