Save plot as logical matrix array with same dimensions as original?

조회 수: 3 (최근 30일)
Theodore Fisher
Theodore Fisher 2021년 2월 17일
댓글: J. Alex Lee 2021년 2월 18일
I am plotting an outline on a logical matrix array and need to resave as the same filetype w/ same dimensions including outline.
Any Advice?

답변 (1개)

J. Alex Lee
J. Alex Lee 2021년 2월 17일
are you looking for imwrite()? or some combination of getframe(), frame2im(), and imwrite()?
  댓글 수: 4
Theodore Fisher
Theodore Fisher 2021년 2월 18일
I will try the CVT thank you
J. Alex Lee
J. Alex Lee 2021년 2월 18일
oh, if the issue is "original dimensions", I guess you need to make sure (if not using CVT) that the image is being "displayed" on your "axes" at 1:1 pixel resolution of the original image. You can set that up by ensuring your figure is at least as large as your image and axes is exactly the same size, by setting the figure's "Units" property to "pixels" and settin the "Position" property appropriately. In the past I've had to adjust the pixel size by +/- 1 pixels to get frame2im to output the right size.

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

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by