How to create a new image of 128x128 in MATLAB and how to perform image animation on same.
조회 수: 1 (최근 30일)
이전 댓글 표시
i want to create an iamge of 128x128 in matlab please send me code for same.
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 9월 18일
%create an image
SampleImage = uint8( rand(128,128) * 255 );
%animate the image
%set up for animation
image(SampleImage);
cmap = colormap();
%and do the colormap animation
for K = 1 : 50
colormap(cmap);
cmap = circshift(cmap, 1, 1);
pause(0.5);
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!