Skip to content

Commit bbf9701

Browse files
committed
Adds a reference to the notebook example to readme.
1 parent 8b00be1 commit bbf9701

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,14 @@ d.addPairwiseGaussian(sxy=3, compat=3)
101101
d.addPairwiseBilateral(sxy=80, srgb=13, rgbim=im, compat=10)
102102
```
103103

104+
### Non-RGB bilateral
105+
104106
An important caveat is that `addPairwiseBilateral` only works for RGB images, i.e. three channels.
105107
If your data is of different type than this simple but common case, you'll need to compute your
106108
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.
107109

110+
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.
111+
108112
### Compatibilities
109113

110114
The `compat` argument can be any of the following:

0 commit comments

Comments
 (0)