How to have consistent upsampling/downsampling when creating a laplacian pyramid?

324 Views Asked by At

I,m trying to make a laplacian pyramid for image reconstruction but I,ve got a problem.

When downsampling I just get the even rows/columns and discard the rest, when upsampling I duplicate each row/column.

But this creates a situation where sizes of images may not be the same, not allowing me to create a LoG by subtraction. If I downsample a odd size img and the upsample it it will be even.

How do I do this correctly so I can reconstruct the original image perfectly?

0

There are 0 best solutions below