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

About the output image size #1

Closed
raywzy opened this issue Apr 20, 2020 · 3 comments
Closed

About the output image size #1

raywzy opened this issue Apr 20, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@raywzy
Copy link

raywzy commented Apr 20, 2020

Hi~ Very great motion blur effects. Thanks a lot. But I found the output size of image will become smaller. If there is any way to maintain the original image size?

LeviBorodenko added a commit that referenced this issue Apr 20, 2020
We add the argument "keep_image_dims" to the apply to function that
if set to "True" will perfrom "same" instead of "valid" convolution
thus making the dimention of the blurred image the same as the one
of the original image.
@LeviBorodenko
Copy link
Owner

LeviBorodenko commented Apr 20, 2020

Hey @raywzy,

I have added the argument "keep_image_dim" to the applyTo method. If you now run
kernel.applyTo(image, keep_image_dim=True) then instead of performing "valid" convolution, we will use scipy's "same" convolution which conserves image dimensions.

Hope it helps :)

Best,
Levi

@LeviBorodenko LeviBorodenko self-assigned this Apr 20, 2020
@LeviBorodenko LeviBorodenko added the enhancement New feature or request label Apr 20, 2020
@raywzy
Copy link
Author

raywzy commented Apr 20, 2020

Hey @raywzy,

I have added the argument "keep_image_dim" to the applyTo method. If you now run
kernel.applyTo(image, keep_image_dim=True) then instead of performing "valid" convolution, we will use scipy's "same" convolution which conserves image dimensions.

Hope it helps :)

Best,
Levi

Thank you very much :)

@LeviBorodenko
Copy link
Owner

You're welcome!

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

No branches or pull requests

2 participants