Binary to grayscale and then to RGB

11 views (last 30 days)
Salim Syed
Salim Syed on 28 May 2016
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

Answers (0)

Community Treasure Hunt

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

Start Hunting!