필터 지우기
필터 지우기

how can i include information on captured image

조회 수: 2 (최근 30일)
Pat
Pat 2013년 5월 7일
hi... i have a question on how to edit a picture in matlab. let say i have a picture which is captured from the camera. before i would like to save the image, i want matlab to put few information on the picture such as date,time and title at the image before matlab save it.

채택된 답변

Anand
Anand 2013년 5월 7일
Here's one way to do it:
%read the image
im = imread('cameraman.tif');
% display it
imshow(im);
% add text
text(10,10,date);
% take a snapshot
frame = getframe(gca);
%write back to file
imwrite(frame.cdata,'cameraman_with_date.tif');
  댓글 수: 2
Pat
Pat 2013년 5월 7일
thank you..your answer help me a lot
Pat
Pat 2013년 5월 7일
btw is there are other method that can i use in order to exactly add information to the image without the need to show the image due to it create conflict with the message box which i used to give warning that image is captured. can i write the information to the image just as camera captured the image.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by