Change resize algorithm in figure window
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
Does anyone know which resize algorithm matlab is using to represent my data in a limited number of pixels? Is it some flavour of imresize?
Secondly, I would like to change which algorithm is used, any info on that?
(Specifically, I am using imagesc to create a plot, and I am not happy with how the data is represented. But my question is probably not specific to imagesc).
댓글 수: 0
답변 (1개)
Jan
2022년 4월 1일
편집: Jan
2022년 4월 1일
If you mean, how image() resizes the data to match the pixels of the display, see: https://www.mathworks.com/matlabcentral/answers/454161-interpolation-method-of-image
댓글 수: 4
Jan
2022년 4월 1일
You can insert this in the SizeChangedFcn of the figure. Put the original image data in the UserData of the image object. Then apply the reizing whenever the size is changed. This can cause troubles due to the delay. See https://www.mathworks.com/matlabcentral/answers/400382-delay-when-resizing-a-figure-in-r2016b
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!