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

How to use the 3 parameters? #7

Open
Mengmengbai opened this issue Oct 10, 2016 · 6 comments
Open

How to use the 3 parameters? #7

Mengmengbai opened this issue Oct 10, 2016 · 6 comments

Comments

@Mengmengbai
Copy link

What is the mean of scale, sigma and min_size?

@gamella
Copy link
Contributor

gamella commented Oct 20, 2016

Let's see this paper:
http://cs.brown.edu/~pff/papers/seg-ijcv.pdf

sigma:

In general we use a Gaussian filter to
smooth the image slightly before computing the edge weights, in order to compensate
for digitization artifacts. We always use a Gaussian with σ = 0.8, which does not
produce any visible change to the image but helps remove artifacts.

@gamella
Copy link
Contributor

gamella commented Oct 20, 2016

If the rect size is reached on min_size, the calculation is stopped.

@gamella
Copy link
Contributor

gamella commented Oct 20, 2016

scale:

There is one runtime parameter for the algorithm, which is the value of k that
is used to compute the threshold function τ . Recall we use the function τ (C) =
14
k/|C| where |C| is the number of elements in C. Thus k effectively sets a scale of
observation, in that a larger k causes a preference for larger components. We use
two different parameter settings for the examples in this section (and throughout the
paper), depending on the resolution of the image and the degree to which fine detail
is important in the scene.

@gamella
Copy link
Contributor

gamella commented Oct 20, 2016

I hope this info help you

@gamella
Copy link
Contributor

gamella commented Oct 25, 2016

#11

@NYcleaner
Copy link

@gamella hello, I have question, one region may like this {'labels': [0.0], 'rect': (0, 0, 15, 24), 'size': 260}, but how to calculate the 'size' from the 'rect'? 15*24 =360?
thanks

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