Binary to grayscale and then to RGB
5 次查看(过去 30 天)
显示 更早的评论
ImageObject = imread(input_video_file);
img=ImageObject;
grayImage = rgb2gray(img); thresholdLevel = graythresh(grayImage); binaryImage = im2bw( grayImage, thresholdLevel); binaryImageArray = cat(3,binaryImage); A=binaryImageArray(:)';
% A contain a stream of bits of image. Plz tell that how can i convert this stream "A" to Colourmap image i.e back to RGB; i use B=A'; Sh=reshape(B,Row,Column,Page); UitPl=uint8(255*Sh); imshow(UitPl); but it gives me only Black and white Picture. Plz help
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!