필터 지우기
필터 지우기

convert .fig to .jpg based on the ROI

조회 수: 2 (최근 30일)
Tulips
Tulips 2012년 6월 7일
Hi Sir, can I know how to save the .fig from matlab window to .jpg based on the desired result.this the image that I mentioned: http://www.flickr.com/photos/80166922@N06/7347715732/in/photostream
As u can see from the image, there is white area in the backgeound but I do not want the white are.Just want the region of interest (I mean the circular sign only). how should I eliminate the white background so that I can save it as .jpg for the ROI only. FYI, I save the image from .fig to .jpg in my current directory

채택된 답변

Oliver Woodford
Oliver Woodford 2012년 6월 7일
Export_fig automatically crops whitespace around figures by default. Download the files to somewhere on your MATLAB path, then, with the relevant figure open, call:
export_fig specific_directory/test.jpg -a1
  댓글 수: 10
Oliver Woodford
Oliver Woodford 2012년 6월 8일
See my updated answer.
Tulips
Tulips 2012년 6월 9일
what's the meaning of -a1

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

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by