grey2 = IplImage.create(cameraImage.width(), cameraImage.height(), IPL_DEPTH_8U, 1);
cvCvtColor(cameraImage, grey2, CV_BGR2GRAY);
}
objectFinderSettings.setObjectImage(grey1);
ObjectFinder objectFinder = new ObjectFinder(objectFinderSettings);
double[] roiPts = objectFinder.find(grey2);
if (grey1 != objectImage) {
grey1.release();
}
if (grey2 != cameraImage) {
grey2.release();