필터 지우기
필터 지우기

I need to convert my gif from black and white to RGB in MatLab.

조회 수: 2 (최근 30일)
Thomas P
Thomas P 2015년 4월 14일
답변: Image Analyst 2015년 4월 14일
Using a code found on this website, I was able to use a gif in MatLab, now i need make it in color. I used the coding below to initially use it, now I need color. Note: MK.gif is the file's name.
clear all;clc; %cleans the record
acc= 'MK.gif'
[gifImage cmap] = imread(acc, 'Frames', 'all');
size(gifImage)
implay(gifImage);
Any Ideas?

답변 (1개)

Image Analyst
Image Analyst 2015년 4월 14일
rgbImage = ind2rgb(gifImage, cmap);

카테고리

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