Bug or feature request?

asked 2014-11-13 14:43:55 -0500

jpmccaffery gravatar image

I've found that when using imdecode and imread on identical Byte data I get different Mats returned. I am trying to decode corrupt JPEG files (essentially the first half or so of a JPEG file). imread handles the decoding gracefully filling in the missing data with a flat value. imdecode returns a Mat with 0 rows. Based on the documentation for imdecode I would expect their functionality to be identical.

My question is, is this a bug or a feature request? It's not strictly speaking a bug, but it would seem sensible to me to have imread read the Byte data and then hand that off to imdecode so that their functionality would be identical.

edit retag flag offensive close merge delete

Comments

This question does not show up on my profile's question section. Did I do something wrong?

jpmccaffery gravatar imagejpmccaffery ( 2015-02-04 13:47:35 -0500 )edit