关于matlab做图像处理的一些小tips

1.figure(1)  figure(2)  figure的区别:

   figure按顺序安排图标位置,分别是Figure1,Figure2,Figure3,Figure4....

   figure(1)指将该图花在第一个figure中

   figure(2)即将图花在Figure 2 中.

2.  为图像添加椒盐噪声:

   imnoise(input_image,'salt & pepper',0.02);  注意salt & pepper'不是salt&pepper',中间有两个空格.

3.关于imread(filename,fmt):

    input_image=imread('fingerprint.jpg','jpg');

    input_image=imread('cameraman.tif','tif');

   .jpg和.tif 都可以成功读取  

    但是

你可能感兴趣的:(matlab图像处理)