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

num_neighbors?? #1

Open
wjgarnett opened this issue Apr 17, 2017 · 3 comments
Open

num_neighbors?? #1

wjgarnett opened this issue Apr 17, 2017 · 3 comments

Comments

@wjgarnett
Copy link

num_neighbors may caculate by following:
num_neighbors = Imagescale/2 ??

the reason is the down-sample size is Imagescale, a pixel (x,y) in down-sample scale is correspond with about a rectangle whose size is (Imagescale, Imagescale)

@Digital2Slave
Copy link
Owner

Digital2Slave commented Apr 17, 2017

num_neighbors is just the radius of a sliding window.
Usually, according to Imagescale value, a sliding window is a rectangle window, which may be 5*5, 3*3, etc.

@wjgarnett
Copy link
Author

thx, but what i mean is num_neighbors = Imagescale/2 may be reasonable.

@Digital2Slave
Copy link
Owner

Digital2Slave commented Apr 18, 2017

If num_neighbors = Imagescale/2 is work correctly.
When Imagescale = 2, num_neighbors = 1, and the sliding window may be smaller than 3*3 which may not work.
In my code num_neighbors = (Imagescale*Imagescale+1)/2 = 2 and the sliding window is 5*5.
Any way, u can try it out by using num_neighbors = Imagescale/2, and check your idea.

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
@Digital2Slave @wjgarnett and others