Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
pydensecrf
Commits
3c020a63
Commit
3c020a63
authored
Mar 12, 2018
by
lucasb-eyer
Browse files
Explanation on `srgb` and `sxy` names. Fixes #45.
parent
087217ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
README.md
README.md
+6
-0
No files found.
README.md
View file @
3c020a63
...
...
@@ -103,6 +103,12 @@ d.addPairwiseGaussian(sxy=3, compat=3)
d
.
addPairwiseBilateral
(
sxy
=
80
,
srgb
=
13
,
rgbim
=
im
,
compat
=
10
)
```
The parameters map to those in the paper as follows:
`sxy`
in the
`Gaussian`
case is
`$\theta_{\gamma}$`
,
and in the
`Bilateral`
case,
`sxy`
and
`srgb`
map to
`$\theta_{\alpha}$`
and
`$\theta_{\beta}$`
, respectively.
The names are shorthand for "x/y standard-deviation" and "rgb standard-deviation" and for reference, the formula is:

### Non-RGB bilateral
An important caveat is that
`addPairwiseBilateral`
only works for RGB images, i.e. three channels.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment