%
% This file contains the command-line history
%   -- what I typed in the command-line during class.
% It contains errors if run as a script.
%
%
% Dr. Yoder Winter 2013-2014

clc
I = imread('DesertSmall.jpg');
imshow(I)
I
rand(1)
rand
I = rand(4,3)
imshow(I)
I = rand(1024,1024)
I = rand(1024,1024);
imshow(I)
I(1:100,1:100) = 0;
imshow(I)
I(end-100:end,end-100:end) = 1;
imshow(I)
Igray = uint8(I)
Igray = uint8(I);
imshow(I)
shg
imshow(I)
shg
imshow(Igray)
shg
Igray = 255*Igray;
imshow(I)
imshow(Igray)
shg
Igray = uint8(255*I);
imshow(Igray)
shg
I = rand(5,4,3)
imshow(I)
white = ones(300,300);
black = zeros(300,300);
I = zeros(300,300,3);
imshow(I(:,:,1))
I(:,:,1) = white;
I(1,1,:)
imshow(I)
I(:,:,2) = white;
I(1,1,:)
imshow(I)
shg
I = rand(5,4)
I = zeros(5,10);
I(:,1:5) = 1;
i
I
imshow(I)
dIdx = [1 0 -1]
edge = imfilter(I,dIdx)
imshow(I)
shg
imshow(edge)
shg

