IplImage testImage = allImages.getIplImage(0);
IplImage testImage2 = allImages.getIplImage(1);
Stitcher s = Stitcher.createDefault(false);
MatVector testVec = new MatVector(2);
testVec.put(0, testImage);
testVec.put(1, testImage2);
IplImage resultI = IplImage.create(testImage.width(), testImage.height(), testImage.depth(), 3);
int status = s.stitch(testVec,resultI);
//check the status of the stitcher
if( status == s.OK )
{
Bitmap testImageBitmap = IplImageToBitmap(resultI);
savePicture(testImageBitmap, 3, "ready");
}
缝合器的状态始终为1,但s.OK为0.有人可以给我一个暗示,为什么这两个图像没有拼接?
谢谢!