#include "stdafx.h"
#include "highgui.h"
#include "cv.h"
int main() {
IplImage* frame = cvLoadImage("H:\\3.jpg",1);
int width = frame->width; int height = frame->height;
IplImage* img = cvCreateImage( // combinated image
CvSize(3 * frame->width, frame->height),
frame->depth,
3);
IplImage* gray = cvCreateImage(cvGetSize(frame),IPL_DEPTH_8U,1); // single channel gray
IplImage* canny = cvCreateImage(cvGetSize(frame), IPL_DEPTH_8U,1);// single channel canny
#include "highgui.h"
#include "cv.h"
int main() {
IplImage* frame = cvLoadImage("H:\\3.jpg",1);
int width = frame->width; int height = frame->height;
IplImage* img = cvCreateImage( // combinated image
CvSize(3 * frame->width, frame->height),
frame->depth,
3);
IplImage* gray = cvCreateImage(cvGetSize(frame),IPL_DEPTH_8U,1); // single channel gray
IplImage* canny = cvCreateImage(cvGetSize(frame), IPL_DEPTH_8U,1);// single channel canny