I am new to opencv and wondering what's the differcen between resize and pryDown/pryUp, and how to choose between them?
pyrDown()
and pyrUp()
are used for building pyramids.
pyrDown()
... performs the downsampling step of the Gaussian pyramid construction. First, it convolves the source image with [a] kernel [... then] it downsamples the image by rejecting even rows and columns.
and
pyrUp()
...performs the upsampling step of the Gaussian pyramid construction... First, it upsamples the source image by injecting even zero rows and columns and then convolves the result with the same kernel as in pyrDown() multiplied by 4.
up/down-sampling is essentially like nearest-neighbor resizing.
resize()
is used for resizing with various interpolation modes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With