matlab figure 파일을 300dpi로 저장하는 법 - How can I save a figure to a TIFF image with resolution 300 dpi in MATLAB?
Matlab 2017. 3. 27. 13:46
matlab figure 파일을 300dpi로 저장하는 법
1. Using the MATLAB Graphical Environment
Select the figure window that shows the figure to be saved and then follow the steps mentioned below:
- Click on File>>Export Setup.
- A menu named as “Export Setup: Figure Name” must have popped up.
- On the left side of the menu, choose the option named “Rendering”. After that, change the value of:
- ‘Colorspace’ to ’grayscale’
- ‘Resolution(dpi)’ to 300
This step is shown in image file “Step3.jpeg” attached to the solution.
- Click on ‘Apply to Figure’ button.
- Click ‘OK’ button.
- The menu should have disappeared and you should see the figure window with all your changes applied.
- Click on File>>Save As.
- Now, you can save the file to your system. Please do not forget to save as “TIFF image”.
2. Saving a figure to an image file programmatically
a) Use "print" as:
>> print(gcf, '-dtiff', 'myfigure.tiff');
b) Alternatively, you could do:
>> imagewd = getframe(gcf); >> imwrite(imagewd.cdata, 'myfigure.tiff');
To change the quality of a TIFF file, you can specify 'Compression',''none' and increase the resolution with 'Resolution',300.
'Matlab ' 카테고리의 다른 글
matlab audio read write (0) | 2017.12.20 |
---|---|
imhistmatch - Adjust histogram of 2-D image to match histogram of reference image 테스트 영상 히스토그램을 reference영상 히스토그램으로 바꿔주는 함수 (0) | 2017.07.04 |
matlab TreeBagger 예제 나와있는 페이지 (0) | 2017.03.11 |
MATLAB Treebagger and Random Forests (0) | 2017.03.11 |
Tune Random Forest Using Quantile Error and Bayesian Optimization (0) | 2017.03.11 |