matlab与数字图像处理PPT.ppt

matlab与数字图像处理PPT

Set path Set path (cont.) MATLAB Compiler MATLAB Compiler 能让您将MATLAB 程序转换为可单独执行的应用程序和软件组件,并分享给其它使用者。 MATLAB Compiler 可免除您经由手动编写方式将 MATLAB 程序代码转译为 C 或 C++ 的程序。 要再安装MATLAB Component Run-time (MCR)组件等。 MATLAB Compiler (cont.) C to Matlab 设定了合适的编译器,matlab 会自动帮我们编译这个程序。 Example: hello world 指令: -编译:mex filename ex: mex hello.c -执行: filename ex: hello * 数字图像处理,2008年 中山大学信息科学与技术学院计算机系,黄剑 计算机科学系 黄 剑 hjian@mail.sysu.edu.cn 数字图像处理,2008年 中山大学信息科学与技术学院计算机系,黄剑 Matlab with DIP 教学 The MATLAB Image Processing Toolbox The Image Processing Toolbox is a collection of MATLAB functions (called M-functions or M-files) that extend the capability of the MATLAB environment for the solution of digital image processing problems. The MATLAB Image Processing Toolbox(cont.) Including: -Spatial image transformations -Morphological operations -Neighborhood and block operations -Linear filtering and filter design -Transforms - Image analysis and enhancement -Image registration -Deblurring -Region of interest operations How do I know M-function? Find it in Matlab Help. -by category. -by alphabetical order. Find it on the textbook. Matlab 内建图像 C:\MATLAB7\toolbox\images\imdemos 皆为Matlab Help中范例的原始图像。 使用时只需直接在指令中输入文件名,即可使用。 适用于观察影像处理结果 Reading an image imread() 功用:将图像加载并存成array格式备用 用法:[I,map] = imread(filename); I = imread(filename); ex: I = imread(pout.tif); I为指向影像的变量 不指定变数,则为ans Displaying an image imshow() 功用:开启一个窗口显示影像 用法: imshow(I) imshow(I,map) Figure, imshow() 功用:开启一个新窗口显示影像 用法: figure,imshow(I) Displaying an image(cont.) imshow(I, [low, high]) imshow(I, [ ]) 功用:displays I as a grayscale intensity image, specifying the data range for I. The minimum value in I is displayed as black, and the maximum value is displayed as white. Displaying an image(cont.) Spatial domain Displaying an image(cont.) pixval : 功能:cursor on image to show pixel values 用法:

文档评论(0)

1亿VIP精品文档

相关文档