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

S2Convolution requires square inputs #27

Open
meder411 opened this issue Sep 13, 2018 · 5 comments
Open

S2Convolution requires square inputs #27

meder411 opened this issue Sep 13, 2018 · 5 comments

Comments

@meder411
Copy link

Why does the S2Convolution layer require square inputs? Is there a way around this to explore the use of your convolutions on equirectangular images?

@pochoi
Copy link
Contributor

pochoi commented Sep 13, 2018

GitHub Logo
https://www.cs.dartmouth.edu/~geelong/sphere/

Here is a nice picture on how grid points lying on sphere. The dimension (2 * b_in, 2 * b_in) of the input image is the design of the grid points on the sphere. There are total 2 * b_in * 2 * b_in black dots in the picture.

Such grid point design is the convention of the discrete spherical harmonics transform used in this work.

@meder411
Copy link
Author

Ah, okay. So processing an equirectangular projection would require a resampling of the image?

Equirectangular images are usually (180, 360) resolution--essentially unwrapping the sphere around the vertical axis. So I guess I'd need to resample it so that the latitudinal dimension is upsampled by a factor of 2?

@pochoi
Copy link
Contributor

pochoi commented Sep 13, 2018

Why not? In the MINST example, the projection of the 2D image to spherical image can be considered as a kind of resampling. The projection/resampling done in the MNIST example is not the only way. We should feel free to try different projection/resampling schemes to see which works better.

@meder411
Copy link
Author

Okay, thanks for the explanation! I'll explore a bit.

@weberhen
Copy link

weberhen commented Sep 15, 2018

I thought that the MNIST dataset is projected on the northern hemisphere only, in which case having a square image makes sense. But once one works on the full sphere, then we need to resample since the spherical projection are 180° - 360° as @meder411 said.

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

3 participants