求助C++高手解决问题
#include "sift_includes.h"
#include "octavePyramid.cpp"
#include "gaussianWindow.cpp"
#include "orienter.cpp"
#include "edgeResponseFilter.cpp"
#include "localizer.cpp"
#include "visualizer.cpp"
#include "matcher.cpp"
#include "matchvisualizer.cpp"
#include "pcasift.cpp"
#include <time.h>
#include "octave.cpp"
#include "cv_type_converter.c"
int main(void)
{
// load image from disk
IplImage *left = cvLoadImage("5R.jpg", -1);
IplImage *right = cvLoadImage("5F.jpg", -1);
// convert image to normalized, floating point matrix
*****错误CvMat *left32 = cvCreateMat(left->height, left->width, CV_32FC1);
CvMat *right32 = cvCreateMat(right->height, right->width, CV_32FC1);
ipl8uc1_to_cv32fc1(left, left32);
ipl8uc1_to_cv32fc1(right, right32);
normalize32(left32);
normalize32(right32);
// create octave pyramid
printf("Creating pyramid...\t"); fflush(0);
octavePyramid *pyrleft = new octavePyramid(left32);
octavePyramid *pyrright = new octavePyramid(right32);
printf("done\n");
// localize points
printf("Localize points...\t"); fflush(0);
localizer *local = new localizer();
local->localize(pyrleft);
local->localize(pyrright);
printf("done\n");
// perform edge-response filtering on octave pyramid
printf("Edge-response filter...\t"); fflush(0);
edgeResponseFilter *edgefilter = new edgeResponseFilter();
edgefilter->filter(pyrright);
edgefilter->filter(pyrleft);
printf("done\n");
// assign orientation to interest points
printf("Assign orientation...\t"); fflush(0);
orienter *orient = new orienter();
orient->assign(pyrright);
orient->assign(pyrleft);
printf("done\n");
// create PCA-SIFT descriptors by feature extraction
printf("Creating PCA-SIFT descriptors...\t"); fflush(0);
pcasift *descript = new pcasift();
descript->createDescriptors(pyrleft);
descript->createDescriptors(pyrright);
printf("done\n");
// match
printf("Matching points...\t"); fflush(0);
matcher *match = new matcher(pyrleft, pyrright);
printf("done\n");
// visualize matches
matchvisualizer *mvis = new matchvisualizer(match, left, right, 1, MVIS_HORIZONTAL);
mvis->writeToDisk("match.png");
mvis->show("test");
return 0;
}
以上是程序代码,编译连接均通过,但运行出错误,unhandled exception in *.exe:0XC0000005 :Access violation 经调试错误指标停在*****错误处,劳请高手解决!