clear;clc; %clear workspace and screen * read image % display image %store image information in c m=imread('image.jpg'); figure (1),imshow (m); c=imfinfo ('image.jpg') y=c.width х-с.Нeight m=double...



Why using double command in matlab in this code ?



clear;clc;<br>%clear workspace and screen<br>* read image<br>% display image<br>%store image information in c<br>m=imread('image.jpg');<br>figure (1),imshow (m);<br>c=imfinfo ('image.jpg')<br>y=c.width<br>х-с.Нeight<br>m=double (m) ;<br>%convert image data class into double<br>for i=1:1:x-1<br>%loop for red channel<br>for j=1:1:y-1<br>m1 (i,j,1)=m(i,j,1);<br>m1 (i,j,2)=0;<br>m1 (i,j,3)=0;<br>end<br>end<br>ml=uint8 (ml);<br>figure (2), imshow (ml)<br>sconvert image data class into uint8<br>% display red image<br>for i=1:1:x-1<br>%loop for green channel<br>for j=1:1:y-1<br>m2 (i,j,1)=0;<br>m2 (i,j,2)=m(i,j,2);<br>m2 (i,j,3)=0;<br>end<br>end<br>m2=uint8 (m2);<br>figure (3),imshow (m2)<br>

Extracted text: clear;clc; %clear workspace and screen * read image % display image %store image information in c m=imread('image.jpg'); figure (1),imshow (m); c=imfinfo ('image.jpg') y=c.width х-с.Нeight m=double (m) ; %convert image data class into double for i=1:1:x-1 %loop for red channel for j=1:1:y-1 m1 (i,j,1)=m(i,j,1); m1 (i,j,2)=0; m1 (i,j,3)=0; end end ml=uint8 (ml); figure (2), imshow (ml) sconvert image data class into uint8 % display red image for i=1:1:x-1 %loop for green channel for j=1:1:y-1 m2 (i,j,1)=0; m2 (i,j,2)=m(i,j,2); m2 (i,j,3)=0; end end m2=uint8 (m2); figure (3),imshow (m2)

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here