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

Question about the plot of Figure 2 in the paper #71

Open
Hugo-cell111 opened this issue Jan 14, 2024 · 1 comment
Open

Question about the plot of Figure 2 in the paper #71

Hugo-cell111 opened this issue Jan 14, 2024 · 1 comment

Comments

@Hugo-cell111
Copy link

Hi! In the caption of Figure 2, you have mentioned "the average euclidean distance between each patch of size 20 × 20 centered at a given spatial location extracted from the input images, and its 8 neighboring patches", could you please give a more detailed illustration? Or could you provide the code? Thanks!

@yassouali
Copy link
Owner

Hi @Hugo-cell111

For the features, at each spatial location, fetch the 8 neighboring features (so 3 x 3 window) and compute the average of the L2 distances between the center and the 8 neighboring features, so for each feature, you will get a scalar representing the distance between it and its neighboors; then normalize them and plot them.

Same for the images, just this time, instead of a single vector of features (1xC), you'll have an 8x8 patch of RBG values

Hope this helps.

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