Professional Documents
Culture Documents
Rashid
E-mail : rasber.dhahir@ukh.edu.krd
Master Students / Computer Science
2022-2023
Current folder
Work space
Command window
History command
>> min(x)
ans =
2 3 2
>> min(x(:))
ans =
2
>> sum(y(:))
ans =
129
>> z=[2 4 6 3 2 5 3 2]
>> mode(z)
ans =
2
image format as a
Matrix with image image filename as a string
data string/ Path +file name
imwrite(image,filename,fmt)
• Ex:
img = imread('apple.jpg');
figure;
imshow(img);
imwrite(img, 'output.bmp', 'bmp');
>>f=imread(’rose_512.tif’);
>> imshow(f)
f =
-0.5000 0.5000
0.7500 1.5000
>> g=im2uint8(f)
g =
0 128
191 255
Dr Rasper Dh. Rashid
>> h=uint8([25 50; 128 200]);
>> g=im2double(h)
g =
0.0980 0.1961
0.5020 0.7843