Ask Your Question
0

in place resizing

asked 2016-07-12 17:21:52 -0600

atv gravatar image

Am i getting this error because of in place resizing? i.e. I use the same var like so (resize,var,var ..) It's probably not the right thing to do but it seems to work, now i'm not so sure. I see it in other code with grayscale, equalizeHist etc.

error: (-215) ssize.area() > 0 in function resize

edit retag flag offensive close merge delete

Comments

and it seems to happen especially when i move my face really fast (lots of data to resize?)

atv gravatar imageatv ( 2016-07-12 17:25:48 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-07-12 19:11:14 -0600

Tetragramm gravatar image

It means the image you're passing in has either no rows, no columns, or both. Why? I don't know, I have no context to guess by.

edit flag offensive delete link more

Comments

Hmm ok thanks, so it's not due to inplace resizing?

atv gravatar imageatv ( 2016-07-13 02:07:44 -0600 )edit

Correct. The assert happens before anything else, so all it does is read the size of the input image.

Tetragramm gravatar imageTetragramm ( 2016-07-13 07:36:05 -0600 )edit

Thanks, that's good to know. It does explain why when i moved my face out of the camera it immediately crashed. I need to check if the face Mat is empty().

Thanks again.

atv gravatar imageatv ( 2016-07-13 07:53:31 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-07-12 17:21:52 -0600

Seen: 1,838 times

Last updated: Jul 12 '16