-
Notifications
You must be signed in to change notification settings - Fork 5
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 choose the compactness
parameter?
#27
Comments
Hi @ailich, I do not have enough time to provide a complete answer, but:
@ailich I look forward to reading your thoughts and ideas on this topic! |
Thanks @Nowosad, I'll try running a few different values with In terms of optimizing the |
Additionally in the original Achanta et al 2012 paper they state "simply defining D to be the five-dimenensional Euclidean distance in labxy space will cause inconsistencies in clustering behavior for different superpixel sizes... To combine the two distances into a single measure, it is necessary to normalize color proximity and spatial proximity by their respective maximum distances within a cluster." They then use Perhaps it would be possible to implement ASLIC as an option and/or have a tool to estimate a "good" starting point for |
@Nowosad, would these same parameters work for tuning
compactness
? And if so, would you be able to provide some guidance on how to choose the range of values to test? Adjusting the formula from your 2021 paper to be in terms of supercells parameters I believe the distance equation should be(though I'm unsure if
step
should be converted from cell to map units).From this equation I can see that if the same spectral data were run through the SLIC algorithm but it was measured in different units, the
compactness
parameter would need to change to get an equivalent result. From doing some reading and looking at the equation I know that larger values will emphasize space and be closer to k means clustering of coordinates whereas smaller values will emphasize spectral characteristics more, and thatcompactness
depends on the range of input cell values and selected distance measure. That being said, given the range of data and selected distance measure (euclidean in my case), I'm unsure how to know what a small value forcompactness
is, what a large value is, and what a value that provides approximately equal weight would be. Do you have any guidance on that?Originally posted by @ailich in #21 (comment)
The text was updated successfully, but these errors were encountered: