이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
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
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
Tulips
2012년 6월 7일
sir,cud u pls explain which part shud I used.I simply dont understand which coding shud I read and used it in my coding.many thanks!!:)
Answer updated.
Tulips
2012년 6월 7일
yeah its exactly works.however, before I export the fig.my resize image is 40x40..after using export_fig test.png the dimension turns to be 41x41. why it that...it supposed to 40x40 same to the resize image, isn't it?
Tulips
2012년 6월 7일
sir, can I know after done export_fig, then how could I save that image in specific directory?
If you have an actual image then cropping it by saving the figure is not the way to go. Why don't you crop the actual image data you're plotting?
Tulips
2012년 6월 8일
because the image is process, it is basically has complicated background.the above link(the image is the ROI).after do some pre-processing processes, I want to eliminate the whitespace background!
Image Analyst
2012년 6월 8일
Use any() and find() to find the top and bottom rows, and the left and right columns. Then crop and save with imwrite().
Tulips
2012년 6월 8일
can u give the code?cant understand.for example after I do [x,y]=find(image). then what shud I do..tq
See my updated answer.
Tulips
2012년 6월 9일
what's the meaning of -a1
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
