MATLAB: Several function applications related to image processing

  • imread: In the same folder, if you use pictures, you can directly call:
ori_ima = imread('lenacolor512.bmp');%直接调用
  • imwrite: output the result data as a picture, and store it in the current folder:
imwrite(water_marked3,'三级DFT优化结果.bmp')
  • im2double: The input image data are all integers, but decimals are involved in the processing, and all pixel data is converted to between [0, 1] and normalized. (It is often used in digital image processing, double(): just to improve the accuracy of the data, without data normalization) It needs to be set to double:
ori_ima = im2double(ori_ima);%归一化整型的图像数据数据,
%带有小数点
  • imnoise: link

  • imresize: Change the size of the picture (picture pixels).
    imresize(A,scale): The size of the scale image, which is larger than one and the result is larger than the original image; otherwise, it is smaller than one and smaller than the original image.
    imresize(A,[M,N]):[M,N] is the size of the picture object.

  • unite (host) : The images are all integers, and the integer image data is transformed into double when processing the images.

Guess you like

Origin blog.csdn.net/qq_40797015/article/details/105763702