Matlab code to convert image to binary numbers and convert back to original

% Reading image fileim=imread('C:UsersDellPictures17.jpg');   % converting image to binary numbersc=dec2bin(im,8);% saving result to filefid = fopen('magic5.txt', 'w+');fwrite(fid,c); fclose(fid);disp(c);%converting image back to decimal and displaying it.d=reshape(uint8(bin2dec(c)),size(im) );image(d);

[AMAZONPRODUCTS asin=”0470767855″]


Popular posts from this blog

MATLAB code for Circular Convolution using Matrix method

Positive number pipe in angular 2+