How do i convert an image plot to a matrix.
이전 댓글 표시
I was wondering if it was possible to create a matrix out of a figure plot.
I would be grateful for any help. Thanks.
답변 (3개)
Image Analyst
2014년 11월 21일
1 개 추천
Leslie Solorzano
2016년 12월 16일
1 개 추천
https://se.mathworks.com/help/matlab/ref/frame2im.html
Ben11
2014년 11월 21일
Maybe I misunderstood but you might want to use getframe and get the cdata property:
Example:
x = -10:10;
y = x.^2;
plot(x,y)
Frame = getframe(gcf)
FrameData = Frame.cdata; %// This is a matrix that you can plot/show with imshow.
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!