Ask questions on using Emgu CV with C++
Post Reply
Posts: 4
Joined: Thu Sep 15, 2011 6:24 am


Post by serino » Thu Sep 15, 2011 7:00 am

I make 4 bands in a single image, I use
cvCvtPlaneToPix (img [1], img [2], img [3], img [4], img [0]);
but I by mistake!
I must put a parameter to NULL?
or there is some other function?

Code: Select all

#include <cxcore.h>
#include <highgui.h>
#include <cv.h>
#include <iostream>
using namespace std;

#define NUM 7
int main(int argc, char **argv)
 IplImage* img[NUM];
 img[0] =cvLoadImage("red.jpg");
 img[1] =cvLoadImage("grn.jpg"); 
 img[2] =cvLoadImage("blu.jpg");
 img[3] =cvLoadImage("nir.jpg");
 img[4] =cvLoadImage("pan.jpg"); 
 cvCvtPlaneToPix(img[1], img[2],img[3], img[0]);

Post Reply