필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to save the image in axes2 with the filename as topgal_seg in tif format. The original filename is topgal. How can I save automatically with the original file name and with extension of the new name?

조회 수: 1 (최근 30일)
I can use imsave(handles.axes2); to save the image. At that time i need to give a new file name, but what do i need to do to save it along with it's original file name plus seg to it. I have many images to do like that. It should come like originalfilename_seg for all the saved images.
Thanks in advance.

답변 (1개)

Image Analyst
Image Analyst 2014년 4월 25일
Use sprintf() and fullfile() to build up your file names, like in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
  댓글 수: 1
Manoj Kumar
Manoj Kumar 2014년 4월 25일
Actually my question is, I opened a image using [filename,pathname]=uigetfile('*'); with file name as topgal.tif and I segmented that image and got the output in the axes2 of GUI. I want to save that axes2 with the help of a push button. The problem here is when I use imsave to save the image in the axes2, it opens a dialog box where i need to enter the name agian. What i need is, when the save dialogbox opens it should show me the name to save as topgal_seg(where topgal is the original file name and i want the "_seg" to be added to the original name of the image). can you please help me . thanks in advance

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by