2012-10-16 07:14:16 -0600 | received badge | ● Scholar (source) |
2012-10-16 07:14:15 -0600 | received badge | ● Supporter (source) |
2012-10-16 07:13:53 -0600 | commented answer | Understand the memory managment while using imread() on allocated Mat Thank, you this was the problem. |
2012-10-11 06:52:33 -0600 | received badge | ● Editor (source) |
2012-10-11 06:46:19 -0600 | asked a question | Understand the memory managment while using imread() on allocated Mat Hello everyone. I'm currently using openCV 2.4.2 for C++ development in the fields of image processing. I just noticed a behaviour extracting some edges with the Canny operator which i can't really make sense of. In fact i dont believe it really has to do with the Canny implementation but more with some memory managment which eiterhway is bugged somehow or i'm using it the wrong way (or in an unsupported one). Please help me to understand what is going on. See the following code snippet which produces this behaviour. Now the output is something like (showing the number of edge pixels per iteration): To sum it up. It seems that the Canny produces different edges allthough the same image and parameters are used. But when i release the image Mat first with edgeMat.release() every time the same number of edges is found. But why is it that way? |