Closed nyorem closed 4 years ago
Hi Jocelyn and sorry for the delay :wink:
From what I understand from these classes, StandardDSS4Computer
is just an alias to ArithmeticalDSSComputer
with a adjacency 4. It has been implemented as a derived class whose Self
typedef does not match the actual class leading to the concept check error that you have.
While waiting for a fix, I suggest you to use the corresponding alias, that is the same line as in the original example:
typedef ArithmeticalDSSComputer<Iterator,Coordinate,4> RecognitionAlgorithm;
or if you prefer, to get the real type using the Self
or Super
typedef (the ugly solution):
typedef typename StandardDSS4Computer<Iterator>::Self RecognitionAlgorithm;
No worries for the delay!
Thank you for your answer, I already used your first proposition to solve the issue but a real fix would be better :wink:
Ongoing fix : #1491
Should be fixed, I close the issue!
Thanks!
Hi all,
I tried to use the
SaturatedSegmentation
class with aStandardDSS4Computer
namely the following typedefs (for instance in lines 173-174 the convex-and-concave-parts example):and it raised a static assertion in
SegmentFactory
:Using an
ArithmeticalDSSComputer<Iterator,Coordinate,4>
for theRecognitionAlgorithm
does not raise this error.As far as I understand
SaturatedSegmentation
should work with any kind ofSegmentComputer
such asStandardDSS4Computer
or am I wrong?Thank you in advance.