3(c) Picture 2nd row 2nd column Picture from row 7 and column 2
pic1.jpg average color
Octave commands
pkg load image
cd t:\
a=imread("pic1.jpg")
sum(sum(a)) # yields
imshow(a)
size (a) #yields
160 107 3
sum(sum(a)) # yields
ans(:,:,1) = 1529983
ans(:,:,2) = 1729019
ans(:,:,3)= 1257798
b=sum(sum(a)/size(a)/size(a,1)/size(a,2);
ans(:,:,1)=89.368
ans(:,:,2)=100.99
ans(:,:,3) =73.470
for 1=1:3;average(:,:,i)=b(i)*ones(100);end;imshow(average)
pic1.jpg average color
Octave commands
pkg load image
cd t:\
a=imread("pic1.jpg")
sum(sum(a)) # yields
imshow(a)
size (a) #yields
160 107 3
sum(sum(a)) # yields
ans(:,:,1) = 1529983
ans(:,:,2) = 1729019
ans(:,:,3)= 1257798
b=sum(sum(a)/size(a)/size(a,1)/size(a,2);
ans(:,:,1)=89.368
ans(:,:,2)=100.99
ans(:,:,3) =73.470
for 1=1:3;average(:,:,i)=b(i)*ones(100);end;imshow(average)
6(c) Rainbow Picture
No comments:
Post a Comment