diff --git a/cv_imshow.py b/cv_imshow.py index d1f8036..6ce465c 100644 --- a/cv_imshow.py +++ b/cv_imshow.py @@ -51,7 +51,7 @@ def invoke (self, arg, from_tty): # Access the variable from gdb. args = gdb.string_to_argv(arg) val = gdb.parse_and_eval(args[0]) - if str(val.type.strip_typedefs()) == 'IplImage *': + if str(val.type.strip_typedefs()) == 'IplImage *' or str(val.type.strip_typedefs()) == 'const IplImage *': img_info = self.get_iplimage_info(val) else: img_info = self.get_cvmat_info(val)