Kuva- ja videosignaalien käsittely (syksy 2008)
Matlab ohje:
Hyödyllisiä komentoja (lisätietoa help *****, missä ***** on alla kerrottu komento)
1. Kuvatiedoston luku/talletus komentoja imread
Read image from graphics file Syntax
A = imread(filename,fmt) [X,map] = imread(filename,fmt) [...] = imread(filename)
[...] = imread(URL,...)
[...] = imread(...,idx) (CUR, GIF, ICO, and TIFF only) [...] = imread(...,'PixelRegion',{ROWS, COLS}) (TIFF only) [...] = imread(...,'frames',idx) (GIF only)
[...] = imread(...,ref) (HDF only)
[...] = imread(...,'BackgroundColor',BG) (PNG only) [A,map,alpha] = imread(...)
imwrite
Write image to graphics file Syntax
imwrite(A,filename,fmt) imwrite(X,map,filename,fmt) imwrite(...,filename)
imwrite(...,Param1,Val1,Param2,Val2...)
2. Kuvan tulostus komentoja imshow
Display image Syntax
imshow(I)
imshow(I,[low high]) imshow(RGB) imshow(BW) imshow(X,map) imshow(filename) himage = imshow(...)
imshow(...,param1,val1,param2,val2)
image
Display image object Syntax
image(C) image(x,y,C)
image(...,'PropertyName',PropertyValue,...)
image('PropertyName',PropertyValue,...) Formal syntax - PN/PV only handle = image(...)
colormap
Set and get the current colormap Syntax
colormap(map) colormap('default') cmap = colormap