1 | initial version |
Here is the code that I use to resize the image:
IplImage* resizing (IplImage *source) {
IplImage *destination = cvCreateImage ( cvSize(Your favourite width , Your favourite height ), source->depth, source>nChannels );
//use cvResize to resize source to a destination image
cvResize(source, destination);
return destination;
}
2 | No.2 Revision |
Here is the code that I use to resize the image:
IplImage* resizing (IplImage *source) {
IplImage *destination = cvCreateImage ( cvSize(Your favourite width , Your favourite height ), source->depth, source>nChannels );
//use cvResize to resize source to a destination image
cvResize(source, destination);
return destination;
}
3 | No.3 Revision |
Here is the code that I You can use it to resize the image:
IplImage* resizing (IplImage *source) {
IplImage *destination = cvCreateImage ( cvSize(Your favourite width , Your favourite height ), source->depth, source>nChannels );
cvResize(source, destination);
return destination;
}