Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

i think, you want cvMerge(hueMask, saturationMask,valueMask, 0, greenObjectsMask);

your code is a bit messy/unclear there, the masks you want to merge, are all empty, is that intended ?

and you probably want

cvCreateImage( cvGetSize(h_plane), 8, 1 );

instead of

cvCreateImage( cvGetSize(h_plane), 8, 3 );

( the mask needs 1 chan only, right ? )

also, why again are you using the old 1.0 api ?