pyramidsegment: wrong value of level property
authorVineeth T M <vineeth.tm@samsung.com>
Mon, 18 May 2015 05:30:19 +0000 (14:30 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 18 May 2015 07:47:45 +0000 (10:47 +0300)
The property level has a minimum value of 0. But when we set the level as 0,
it gets an assertion error. The function icvPyrSegmentation8uC3R returns false
if level is set as 0, since the minimum level cant be 0 and thus results in error.
Hence changing the minimum value to 1.

https://bugzilla.gnome.org/show_bug.cgi?id=749525

ext/opencv/gstpyramidsegment.c

index 6c5292b..618ffdf 100644 (file)
@@ -158,7 +158,7 @@ gst_pyramid_segment_class_init (GstPyramidSegmentClass * klass)
 
   g_object_class_install_property (gobject_class, PROP_LEVEL,
       g_param_spec_int ("level", "Level",
-          "Maximum level of the pyramid segmentation", 0, 4, 4,
+          "Maximum level of the pyramid segmentation", 1, 4, 4,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   gst_element_class_set_static_metadata (element_class,