Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

DIST_L2 missing in version 2.4.8? (segmentation demo fails)

I'm using version 2.4.8 that it is installed as part of the ROS Jade distribution.

I am trying to follow the image segmentation demo, and get the following error. dist_transform = cv2.distanceTransform(opening, cv2.DIST_L2, 5) AttributeError: 'module' object has no attribute 'DIST_L2'

I used

for key in cv2.__dict__.keys():
    print key

and DIST_L2 was not there. I tried substituting NORM_L2 but that failed to give an output.

click to hide/show revision 2
retagged

updated 2016-04-04 02:46:10 -0600

berak gravatar image

DIST_L2 missing in version 2.4.8? (segmentation demo fails)

I'm using version 2.4.8 that it is installed as part of the ROS Jade distribution.

I am trying to follow the image segmentation demo, and get the following error. dist_transform = cv2.distanceTransform(opening, cv2.DIST_L2, 5) AttributeError: 'module' object has no attribute 'DIST_L2'

I used

for key in cv2.__dict__.keys():
    print key

and DIST_L2 was not there. I tried substituting NORM_L2 but that failed to give an output.