diff --git a/example/src/testApp.cpp b/example/src/ofApp.cpp similarity index 97% rename from example/src/testApp.cpp rename to example/src/ofApp.cpp index 61b42b3..7d46fe7 100644 --- a/example/src/testApp.cpp +++ b/example/src/ofApp.cpp @@ -94,7 +94,7 @@ void testApp::keyPressed(int key){ objects.push_back(MatchObject()); objects.back().allocate(cropRect.width, cropRect.height); grayImage.setROI(cropRect.x-10, cropRect.y-10, cropRect.width, cropRect.height); - objects.back().setFromPixels(grayImage.getRoiPixels(), cropRect.width, cropRect.height); + objects.back().setFromPixels(grayImage.getRoiPixels().getPixels(), cropRect.width, cropRect.height); grayImage.resetROI(); } @@ -161,4 +161,4 @@ void testApp::gotMessage(ofMessage msg){ //-------------------------------------------------------------- void testApp::dragEvent(ofDragInfo dragInfo){ -} \ No newline at end of file +} diff --git a/example/src/testApp.h b/example/src/ofApp.h similarity index 100% rename from example/src/testApp.h rename to example/src/ofApp.h