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

Is it possible to use the module for 1d correlation only #10

Closed
fuy34 opened this issue Oct 13, 2018 · 2 comments
Closed

Is it possible to use the module for 1d correlation only #10

fuy34 opened this issue Oct 13, 2018 · 2 comments

Comments

@fuy34
Copy link

fuy34 commented Oct 13, 2018

Hi, thanks for the package!
Is it possible to use this module to perform 1D correlation?
By saying 1d correlation, I mean to do correlation only along X direction, or Y direction, or certain customized direction (e.g. along epipolar line) to save some computation.
if not, would you mind offer some hints to modify the code for that?

@fuy34 fuy34 changed the title Is it possible to use the module for 1d correlation only (to save some computation) Is it possible to use the module for 1d correlation only Oct 13, 2018
@ClementPinard
Copy link
Owner

The parameters are the same as convolutions. Namely, if you specify only a scalar for kernel size or patch size, you will get square values , but you can give two scalars to get non square kernel and patch.

Here you can specify a parch size of (1,n) to get a 1D correlation easily!

@fuy34
Copy link
Author

fuy34 commented Oct 20, 2018

It is cool! Thank you.

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

No branches or pull requests

2 participants