Ask Your Question
1

Up and Down Sampling wihtout Gaussian Blur

asked 2014-03-23 16:42:12 -0500

Adi gravatar image

Is there a function to up/down sample an image without Gaussian blurring, or using a custom separable kernel (besides direct pixel copying)? Like pyrUp() and pyrDown()?
If not, then does anyone have recommendations for an ultra efficient sub-sampling implementation?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-03-25 13:01:52 -0500

xaffeine gravatar image

Just use resize with interpolation=INTER_NEAREST

edit flag offensive delete link more

Comments

That'll work for down sampling, and it's what I did. But what about up sampling that leaves zeros in empty rows and columns?

Adi gravatar imageAdi ( 2014-03-25 13:41:24 -0500 )edit

I usually use INTER_LINEAR, but I thought nearest would work for that. Does it not?

xaffeine gravatar imagexaffeine ( 2014-03-25 14:05:35 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-03-23 16:42:12 -0500

Seen: 355 times

Last updated: Mar 25 '14