Borrar filtros
Borrar filtros

Laplacian Image Pyramid Reconstruction

9 visualizaciones (últimos 30 días)
Algorithms Analyst
Algorithms Analyst el 17 de Abr. de 2014
Editada: Walter Roberson el 15 de Jun. de 2020
Hi all
I am generating a Laplacian pyramid based on Gaussian Pyramid.
img=imread('lena.bmp'); 512*512 size
pyr=cell(1,4);
pyr{1}=img;
pyr=impyramid(img,'reduce');
for p=2:4
pyr{p}=impyramid(pyr{p-1},'reduce'); %% this makes image hierarchy of 4 layers
end
%laplacian pyramid generation
lap=pyr{1}-impyramid(pyr{2},'expand');
gettting error to generate first laplacian image layer, because expansion of second gaussian layer size is less than the first layer of gaussian pyramid. How can I achieve that?
Thanks in advance

Respuesta aceptada

Zhuofan Zheng
Zhuofan Zheng el 15 de Jun. de 2020
this blog could help you.
your problem is caused by the downsample by 2.

Más respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by