"test/git@developer.sourcefind.cn:change/sglang.git" did not exist on "b0d20cdec79c9b4cc1a10ee9cc2ffa35451a9df1"
Commit d5ac5be3 authored by lucasb-eyer's avatar lucasb-eyer
Browse files

Fix issue #34 due to 2D CRF uninitialized members.

parent b5e13a9a
......@@ -113,6 +113,10 @@ cdef class DenseCRF2D(DenseCRF):
self._w = w
self._h = h
# Also set these for the superclass
self._nvar = w*h
self._nlabel = nlabels
def addPairwiseGaussian(self, sxy, compat, KernelType kernel=DIAG_KERNEL, NormalizationType normalization=NORMALIZE_SYMMETRIC):
if isinstance(sxy, Number):
sxy = (sxy, sxy)
......
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