%
% This is simply the history of what I typed in class.
%
% It will almost surely have errors when run.
%


I = [10,28,128
5,30,100];
i
I
I = [10,28,128;5,30,100]
help cat
I = cat(1,[10,28,128],[5,30,100])
I = cat(3,[10,28,128],[5,30,100],[0,0,0])
imshow(I)
shg
I(:)
I = [10,28,128;5,30,100]
I(:)
I(:) = I(:)+1;
I
I = I + 1;
I
I(:) = I(:) + (1:6)'
1:6
(1:6)'
imshow(I)
shg
I = imread('DesertSmall.jpg');
h = ones(11,1)/11
cIy = imfilter(I,h);
size(cIy)
imshow(cIy)
cIj = imfilter(I,h');
imshow(cIj)
shg
help imfilter
cIi = imfilter(I,h,'replicate');
imshow(cIi)
shg
IGray = (I(:,:,1)+I(:,:,2)+I(:,:,3))/3;
imshow(IGray)
shg
type(IGray)
class(IGray)
I = double(I);
I = I/255;
IGray = (I(:,:,1)+I(:,:,2)+I(:,:,3))/3;
imshow(IGray)
shg
