You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: laplacian_pyramid.m
    path of file: ./repos/underwater_image_fusion
    
    the code of the file until where you have to start completion: % 拉普拉斯金字塔（作用：重建高斯金字塔）
function output = laplacian_pyramid(image, level)

h = 1/16 * [1, 4, 6, 
    
function output = laplacian_pyramid(image, level)

h = 1/16 * [1, 4, 6, 4, 1];
filt = h'* h;

output{1} = image;
temp_img = image;

for i = 2 : level   % 滤波，下采样
    temp_img = temp_img(1: 2: end