convert from iplimage to cvArry

asked 2013-06-06 17:47:34 -0500

Ali Tillawi gravatar image

Hi there, I want to convert from iplimage to cvArry to use it in cvCountNonZero() thank you for your help :)

edit retag flag offensive close merge delete

Comments

1

You should not convert iplImages. They are actually cvArray, just used in a smart way. Same goes for the cvMat type. So just input your iplImage to the function.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-06-07 03:38:30 -0500 )edit
1

But then I get an Error in ther Kernel32

Ali Tillawi gravatar imageAli Tillawi ( 2013-06-07 14:15:43 -0500 )edit
1

Post your code, project configuration, system configuration and the complete error please.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-06-07 14:26:29 -0500 )edit
1

It worked, Thank you the input Image had 3-channels, and this is not compatable with cvCountNonZero function

Ali Tillawi gravatar imageAli Tillawi ( 2013-06-07 15:23:58 -0500 )edit
2

Then please answer your own question precisely and accept it as the correct one so the topic looks solved.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-06-07 15:28:40 -0500 )edit