Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cudaResize] Added some interpolation filters. linear, area, cubic, lanczos4, spline36. #37

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

HiroshiYAMA
Copy link
Contributor

  • Added some interpolation filters.
  • Added an optional parameter to specify the interpolation filter type at 'cudaResize'.
  • Added definitions of interpolation filter type.

Interpolation filter types:
default is INTER_NEAREST.

INTER_NEAREST
INTER_LINEAR
INTER_CUBIC
INTER_AREA
INTER_LANCZOS4
INTER_SPLINE36

  • If original image size and resized image size are same, always behave as INTER_NEAREST.
  • In case of INTER_AREA, if resized image size is larger than original images size, behave as INTER_LINEAR.

Example,
Python:

jetson.utils.cudaResize(src_img, dst_img, jetson.utils.INTER_AREA)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants