From 575273f801bdbebbb68f76a48a2f9e0664a425b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mill=C3=A1n=20Escriv=C3=A1?= Date: Thu, 31 Jan 2019 07:32:18 +0100 Subject: [PATCH] Add const type for IplImages struct --- cv_imshow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)