jngwl
img=imread(\'C:\Users\GWL\Desktop\arun.jpg\');
imshow(img,\'Border\',\'tight\');
frame=getframe(gcf);

% method 1
imwrite(frame.cdata(:,:,1),\'test.png\');

% method 2
imm = frame2im(frame);
imwrite(imm,\'test2.png\');

imshow显示图片

image

test.png(灰度图像)

test

test2.png

test2

image

分类:

技术点:

相关文章:

  • 2021-05-02
  • 2021-12-04
  • 2022-12-23
  • 2021-07-17
  • 2021-11-14
  • 2021-05-28
  • 2021-05-25
猜你喜欢
  • 2021-09-14
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
相关资源
相似解决方案