Commit bbf97013 authored by lucasb-eyer's avatar lucasb-eyer
Browse files

Adds a reference to the notebook example to readme.

parent 8b00be1e
...@@ -101,10 +101,14 @@ d.addPairwiseGaussian(sxy=3, compat=3) ...@@ -101,10 +101,14 @@ d.addPairwiseGaussian(sxy=3, compat=3)
d.addPairwiseBilateral(sxy=80, srgb=13, rgbim=im, compat=10) d.addPairwiseBilateral(sxy=80, srgb=13, rgbim=im, compat=10)
``` ```
### Non-RGB bilateral
An important caveat is that `addPairwiseBilateral` only works for RGB images, i.e. three channels. An important caveat is that `addPairwiseBilateral` only works for RGB images, i.e. three channels.
If your data is of different type than this simple but common case, you'll need to compute your If your data is of different type than this simple but common case, you'll need to compute your
own pairwise energy using `utils.create_pairwise_bilateral`; see the [generic non-2D case](https://github.com/lucasb-eyer/pydensecrf#generic-non-2d) for details. own pairwise energy using `utils.create_pairwise_bilateral`; see the [generic non-2D case](https://github.com/lucasb-eyer/pydensecrf#generic-non-2d) for details.
A good [example of working with Non-RGB data](https://github.com/lucasb-eyer/pydensecrf/blob/master/examples/Non%20RGB%20Example.ipynb) is provided as a notebook in the examples folder.
### Compatibilities ### Compatibilities
The `compat` argument can be any of the following: The `compat` argument can be any of the following:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment