⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gaussian_pyramid.m

📁 Please read your package and describe it at least 40 bytes. System will automatically delete the di
💻 M
字号:
function G=gaussian_pyramid(I)%create Gaussian pyramid of images from image I%works for images with dimensions 2^N+1%Homework2 - Computer Vision - Benjamin Berger - Part 1.1.1%CISC 689 - University of Delaware - 03/16/03% I: raw image - G: cell array of Gaussian pyramid images%Iorig = imread('../zebragray.png');%B=rgb2gray(I);%[r c d]=size(Iorig);%cut ugly stripes... (would give stripes through whole pyramid)%Iorig=Iorig(2:r,1:c-1);[r c d]=size(I);ghat=[0.05,0.25,0.4,0.25,0.05];%look if rows are greater than coloumns?%Pyramid has N+1 levels, if smallest dimension 2^N+1N=floor(log2(r-1));G{1} = im2double(I); %cell indices must be > 0%create array of Pyramids:for level = 1:N-1     G{level+1} = reduce(G{level});    % imshow(G{level+1});    % save pics with dynamic filename (add level number)    % print( '-dgif', ['gaussian',char(sym(level+1))] )end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -