diff options
author | N.N. <sevyves@users.sourceforge.net> | 2009-09-08 21:37:37 +0000 |
---|---|---|
committer | N.N. <sevyves@users.sourceforge.net> | 2009-09-08 21:37:37 +0000 |
commit | 8f647ac68608d11c222503045141055717c07fba (patch) | |
tree | 486c562479e69eef71fdd7f1a3932fd4f5eda2dc | |
parent | e83d9650cf04791b7016ddac09fbb4393aebe6bd (diff) |
channel inversion of course
svn path=/trunk/externals/pdp_opencv/; revision=12261
-rw-r--r-- | pdp_opencv_channels.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pdp_opencv_channels.cc b/pdp_opencv_channels.cc index 46d67cc..57e440d 100644 --- a/pdp_opencv_channels.cc +++ b/pdp_opencv_channels.cc @@ -116,9 +116,9 @@ static void pdp_opencv_channels_process_rgb(t_pdp_opencv_channels *x) cvSplit( x->image, x->bimage, x->gimage, x->rimage, NULL ); cvZero( x->zimage ); - cvMerge( x->rimage, x->zimage, x->zimage, NULL, x->frimage ); + cvMerge( x->zimage, x->zimage, x->rimage, NULL, x->frimage ); cvMerge( x->zimage, x->gimage, x->zimage, NULL, x->fgimage); - cvMerge( x->zimage, x->zimage, x->bimage, NULL, x->fbimage ); + cvMerge( x->bimage, x->zimage, x->zimage, NULL, x->fbimage ); memcpy( rdata, x->frimage->imageData, x->x_size*3 ); memcpy( gdata, x->fgimage->imageData, x->x_size*3 ); |