[Usage of the Matlba]imresize function

Source: Internet
Author: User
Clear;lena=imread (' a1.bmp '); three lines below specify a zoom multiplier of 0.5, that is 0.5 times times the length and width of the original image,% using three interpolation methods, that is, nearest neighbor interpolation (default), bilinear interpolation, double three times interpolation lena0_5_1= Imresize (lena,0.5);%lena0_5_2=imresize (lena,0.5, ' bilinear '); Lena0_5_3=imresize (lena,0.5, ' bicubic ');% The following three lines specify a zoom multiplier of 2, which is twice times the length and width of the original image, using three interpolation methods, i.e. nearest neighbor interpolation (default), bilinear interpolation, double three interpolation lena2_1=imresize (lena,2), Lena2_2=imresize (lena,2, ' bilinear '); Lena2_3=imresize (lena,2, ' bicubic '); The following line is another example of a given zoom factor, that is, the number of rows and columns of the scaled image lena2_1_0=imresize (lena,[ Imshow (LENA2_1_0);

[Usage of the Matlba]imresize function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.