 };
 #endc
 {#enum DistanceType {}#}
-
+#ifdef OpenCV24
 #c
 enum LabelType {
      CCOMP = CV_DIST_LABEL_CCOMP

                                  (fromIntegral . fromEnum $ dtype) 
                                  (fromIntegral . fromEnum $ maskSize)
                                   nullPtr nullPtr
                                  (fromIntegral . fromEnum $ CCOMP)
    return result
    -- TODO: Add handling for labels
    -- TODO: Add handling for custom masks

};
#endc
{#enum LabelType {}#}
#endif

-- |Mask sizes accepted by distanceTransform
data MaskSize = M3 | M5 deriving (Eq,Ord,Enum,Show)
