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
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.
### Compatibilities
The `compat` argument can be any of the following:
raiseValueError("Bad shape for pairwise bilateral (Need {}, got {})".format((self._h,self._w,3),rgbim.shape))
ifrgbim.shape[2]!=3:
raiseValueError("addPairwiseBilateral only works for RGB images. For other types, use `utils.create_pairwise_bilateral` to construct your own pairwise energy and add it through `addPairwiseEnergy`.")