A=imread('flower.jpg');
>> image(A);
size(A)
ans =
600 400 3
>> B=decrease4(A,20/600,20/400);
image(B)
size(B)
ans =
20 20 3
>> B=255*B;
C=floor(B/86)*86+42;
image(double(C)/255)
I tried to decrease the size of my image to 20x20, but it did not look good.
So I stayed with 40x40.
B=decrease4(A,40/600,40/400);
image(B)
size(B)
ans =
40 40 3
>> image(B)
>>
>>
>> B=255*B;
C=floor(B/86)*86+42;
image(double(C)/255)
>> D=increase2v(C,15);
>> image(D)




Above my 27 colours.
No comments:
Post a Comment