diff --git a/samples/ocvKalman/include/Resources.h b/samples/ocvKalman/include/Resources.h new file mode 100644 index 0000000..667c1df --- /dev/null +++ b/samples/ocvKalman/include/Resources.h @@ -0,0 +1,13 @@ +#pragma once +#include "cinder/CinderResources.h" + +//#define RES_MY_RES CINDER_RESOURCE( ../resources/, image_name.png, 128, IMAGE ) + + + + + + + + + diff --git a/samples/ocvKalman/resources/CinderApp.icns b/samples/ocvKalman/resources/CinderApp.icns new file mode 100644 index 0000000..e3f05c8 Binary files /dev/null and b/samples/ocvKalman/resources/CinderApp.icns differ diff --git a/samples/ocvKalman/resources/CinderApp_ios.png b/samples/ocvKalman/resources/CinderApp_ios.png new file mode 100644 index 0000000..1611801 Binary files /dev/null and b/samples/ocvKalman/resources/CinderApp_ios.png differ diff --git a/samples/ocvKalman/resources/cinder_app_icon.ico b/samples/ocvKalman/resources/cinder_app_icon.ico new file mode 100644 index 0000000..b35fb85 Binary files /dev/null and b/samples/ocvKalman/resources/cinder_app_icon.ico differ diff --git a/samples/ocvKalman/src/ocvKalmanApp.cpp b/samples/ocvKalman/src/ocvKalmanApp.cpp new file mode 100644 index 0000000..be8faf6 --- /dev/null +++ b/samples/ocvKalman/src/ocvKalmanApp.cpp @@ -0,0 +1,125 @@ +#include "cinder/app/App.h" +#include "cinder/app/RendererGl.h" +#include "cinder/gl/gl.h" + +#include "CinderOpenCV.h" + +using namespace ci; +using namespace ci::app; +using namespace std; + +class ocvKalmanApp : public App { + public: + void setup() override; + void mouseDrag( MouseEvent event ) override; + void update() override; + void draw() override; + + class KalmanFilter { + + protected: + cv::KalmanFilter mKF; + cv::Mat_ mMeasurement; + cv::Point mPrediction; + + public: + + KalmanFilter( cv::Point initialPt ) + { + mKF = cv::KalmanFilter( 4, 2, 0 ); + mKF.transitionMatrix = ( cv::Mat_(4, 4) << 1,0,1,0, 0,1,0,1, 0,0,1,0, 0,0,0,1 ); + mMeasurement = cv::Mat_( 2, 1 ); + mMeasurement.setTo( cv::Scalar( 0 ) ); + + // init... + mKF.statePre.at( 0 ) = initialPt.x; + mKF.statePre.at( 1 ) = initialPt.y; + mKF.statePre.at( 2 ) = 0; + mKF.statePre.at( 3 ) = 0; + setIdentity( mKF.measurementMatrix ); + setIdentity( mKF.processNoiseCov, cv::Scalar::all( 1e-4 ) ); + setIdentity( mKF.measurementNoiseCov, cv::Scalar::all( 1e-1 ) ); + setIdentity( mKF.errorCovPost, cv::Scalar::all( .1 )); + + mPrediction = initialPt; + + // prime the filter, otherwise it thinks it's at 0,0 + correct( initialPt ); + } + + cv::Point updatePrediction() + { + cv::Mat prediction = mKF.predict(); + mPrediction = cv::Point( prediction.at(0), prediction.at( 1 ) ); + + return mPrediction; + } + + cv::Point correct( cv::Point pt ) + { + // update point + mMeasurement( 0 ) = pt.x; + mMeasurement( 1 ) = pt.y; + + cv::Point measPt( mMeasurement( 0 ), mMeasurement( 1 ) ); + + // The "correct" phase that is going to use the predicted value and our measurement + cv::Mat estimated = mKF.correct( mMeasurement ); + cv::Point statePt( estimated.at( 0 ), estimated.at( 1 ) ); + + mPrediction = statePt; + + return mPrediction; + } + }; // class KalmanFilter + + KalmanFilter *mFilter; + vector mMousePoints; + vector mKalmanPoints; + +}; // class ocvKalmanApp + + +void ocvKalmanApp::setup() +{ + setFrameRate( 30.0f ); +} + +void ocvKalmanApp::mouseDrag( MouseEvent event ) +{ + mMousePoints.push_back( event.getPos() ); + + if( mKalmanPoints.empty() ) { + mFilter = new KalmanFilter( toOcv( event.getPos() ) ); + mKalmanPoints.push_back( event.getPos() ); + } else { + mFilter->correct( toOcv( event.getPos() ) ); + mKalmanPoints.push_back( fromOcv( mFilter->updatePrediction() ) ); + console() << mKalmanPoints.back() << endl; + } +} + +void ocvKalmanApp::update() +{ +} + +void ocvKalmanApp::draw() +{ + gl::clear( Color( 0, 0, 0 ) ); + + gl::color( 1.0f, 0.0f, 0.0f ); + gl::begin( GL_LINE_STRIP ); + for( const vec2 &point : mMousePoints ) { + gl::vertex( point ); + } + gl::end(); + + gl::color( 1.0f, 1.0f, 0.0f ); + gl::begin( GL_LINE_STRIP ); + for( const vec2 &point : mKalmanPoints ) { + gl::vertex( point ); + } + gl::end(); +} + +CINDER_APP( ocvKalmanApp, RendererGl ) diff --git a/samples/ocvKalman/vc2013/Resources.rc b/samples/ocvKalman/vc2013/Resources.rc new file mode 100644 index 0000000..3700bd6 --- /dev/null +++ b/samples/ocvKalman/vc2013/Resources.rc @@ -0,0 +1,3 @@ +#include "../include/Resources.h" + +1 ICON "..\\resources\\cinder_app_icon.ico" diff --git a/samples/ocvKalman/vc2013/ocvKalman.sln b/samples/ocvKalman/vc2013/ocvKalman.sln new file mode 100644 index 0000000..b859769 --- /dev/null +++ b/samples/ocvKalman/vc2013/ocvKalman.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ocvKalman", "ocvKalman.vcxproj", "{2A74E0BA-B60B-49C2-8142-EC9C70554A17}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2A74E0BA-B60B-49C2-8142-EC9C70554A17}.Debug|x64.ActiveCfg = Debug|x64 + {2A74E0BA-B60B-49C2-8142-EC9C70554A17}.Debug|x64.Build.0 = Debug|x64 + {2A74E0BA-B60B-49C2-8142-EC9C70554A17}.Release|x64.ActiveCfg = Release|x64 + {2A74E0BA-B60B-49C2-8142-EC9C70554A17}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/samples/ocvKalman/vc2013/ocvKalman.vcxproj b/samples/ocvKalman/vc2013/ocvKalman.vcxproj new file mode 100644 index 0000000..46d7fc2 --- /dev/null +++ b/samples/ocvKalman/vc2013/ocvKalman.vcxproj @@ -0,0 +1,112 @@ + + + + Debug + x64 + + + Release + x64 + + + + {2A74E0BA-B60B-49C2-8142-EC9C70554A17} + ocvKalman + Win32Proj + + + + Application + false + v120 + Unicode + true + + + Application + true + v120 + Unicode + + + + + + + + + + + + <_ProjectFileVersion>10.0.30319.1 + true + false + + + + Disabled + ..\include;"..\..\..\..\..\include";..\..\..\include + WIN32;_WIN32_WINNT=0x0601;_WINDOWS;NOMINMAX;_DEBUG;%(PreprocessorDefinitions) + EnableFastChecks + MultiThreadedDebug + + Level3 + ProgramDatabase + true + + + "..\..\..\..\..\include";..\include + + + cinder-$(PlatformToolset)_d.lib;OpenGL32.lib;%(AdditionalDependencies);..\..\..\lib\vc2013\x86\opencv_calib3d300d.lib;..\..\..\lib\vc2013\x86\opencv_core300d.lib;..\..\..\lib\vc2013\x86\opencv_features2d300d.lib;..\..\..\lib\vc2013\x86\opencv_flann300d.lib;..\..\..\lib\vc2013\x86\opencv_hal300d.lib;..\..\..\lib\vc2013\x86\opencv_imgproc300d.lib;..\..\..\lib\vc2013\x86\opencv_ml300d.lib;..\..\..\lib\vc2013\x86\opencv_objdetect300d.lib;..\..\..\lib\vc2013\x86\opencv_photo300d.lib;..\..\..\lib\vc2013\x86\opencv_shape300d.lib;..\..\..\lib\vc2013\x86\opencv_stitching300d.lib;..\..\..\lib\vc2013\x86\opencv_superres300d.lib;..\..\..\lib\vc2013\x86\opencv_ts300d.lib;..\..\..\lib\vc2013\x86\opencv_video300d.lib;..\..\..\lib\vc2013\x86\opencv_videostab300d.lib;..\..\..\lib\vc2013\x86\ippicvmt.lib + "..\..\..\..\..\lib\msw\$(PlatformTarget)" + true + Windows + false + + LIBCMT;LIBCPMT + + + + + ..\include;"..\..\..\..\..\include";..\..\..\include + WIN32;_WIN32_WINNT=0x0601;_WINDOWS;NOMINMAX;NDEBUG;%(PreprocessorDefinitions) + MultiThreaded + + Level3 + ProgramDatabase + true + + + true + + + "..\..\..\..\..\include";..\include + + + cinder-$(PlatformToolset).lib;OpenGL32.lib;%(AdditionalDependencies);..\..\..\lib\vc2013\x86\opencv_calib3d300.lib;..\..\..\lib\vc2013\x86\opencv_core300.lib;..\..\..\lib\vc2013\x86\opencv_features2d300.lib;..\..\..\lib\vc2013\x86\opencv_flann300.lib;..\..\..\lib\vc2013\x86\opencv_hal300.lib;..\..\..\lib\vc2013\x86\opencv_imgproc300.lib;..\..\..\lib\vc2013\x86\opencv_ml300.lib;..\..\..\lib\vc2013\x86\opencv_objdetect300.lib;..\..\..\lib\vc2013\x86\opencv_photo300.lib;..\..\..\lib\vc2013\x86\opencv_shape300.lib;..\..\..\lib\vc2013\x86\opencv_stitching300.lib;..\..\..\lib\vc2013\x86\opencv_superres300.lib;..\..\..\lib\vc2013\x86\opencv_ts300.lib;..\..\..\lib\vc2013\x86\opencv_video300.lib;..\..\..\lib\vc2013\x86\opencv_videostab300.lib;..\..\..\lib\vc2013\x86\ippicvmt.lib + "..\..\..\..\..\lib\msw\$(PlatformTarget)" + false + true + Windows + true + + false + + + + + + + + + + + + + + + + + + diff --git a/samples/ocvKalman/vc2013/ocvKalman.vcxproj.filters b/samples/ocvKalman/vc2013/ocvKalman.vcxproj.filters new file mode 100644 index 0000000..44735b0 --- /dev/null +++ b/samples/ocvKalman/vc2013/ocvKalman.vcxproj.filters @@ -0,0 +1,49 @@ + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav + + + {0D429678-E93C-4003-B82E-680E84A9DA85} + + + {32C40B97-A5FC-42FA-9E1D-6C294CAD206C} + + + {7BD4CBB0-5935-48F8-9CBC-1FADC1874EB8} + + + + + Source Files + + + Source Files + + + Header Files + + + Blocks\OpenCV3\include + + + + + Header Files + + + + + Resource Files + + + diff --git a/samples/ocvKalman/xcode/Info.plist b/samples/ocvKalman/xcode/Info.plist new file mode 100644 index 0000000..838dc0d --- /dev/null +++ b/samples/ocvKalman/xcode/Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + CinderApp.icns + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSMinimumSystemVersion + ${MACOSX_DEPLOYMENT_TARGET} + NSHumanReadableCopyright + Copyright © 2015 __MyCompanyName__. All rights reserved. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/samples/ocvKalman/xcode/ocvKalman.xcodeproj/project.pbxproj b/samples/ocvKalman/xcode/ocvKalman.xcodeproj/project.pbxproj new file mode 100644 index 0000000..bacce7b --- /dev/null +++ b/samples/ocvKalman/xcode/ocvKalman.xcodeproj/project.pbxproj @@ -0,0 +1,407 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 006D720419952D00008149E2 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 006D720219952D00008149E2 /* AVFoundation.framework */; }; + 006D720519952D00008149E2 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 006D720319952D00008149E2 /* CoreMedia.framework */; }; + 0091D8F90E81B9330029341E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0091D8F80E81B9330029341E /* OpenGL.framework */; }; + 00B784B30FF439BC000DE1D7 /* Accelerate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00B784AF0FF439BC000DE1D7 /* Accelerate.framework */; }; + 00B784B40FF439BC000DE1D7 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00B784B00FF439BC000DE1D7 /* AudioToolbox.framework */; }; + 00B784B50FF439BC000DE1D7 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00B784B10FF439BC000DE1D7 /* AudioUnit.framework */; }; + 00B784B60FF439BC000DE1D7 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00B784B20FF439BC000DE1D7 /* CoreAudio.framework */; }; + 00B9955A1B128DF400A5C623 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00B995581B128DF400A5C623 /* IOKit.framework */; }; + 00B9955B1B128DF400A5C623 /* IOSurface.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00B995591B128DF400A5C623 /* IOSurface.framework */; }; + 21FB560515E44BFBB3AA29ED /* ocvKalmanApp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FD8D549CA3F486A91A8D51E /* ocvKalmanApp.cpp */; }; + 315013285C1046BE8901F65A /* CinderApp.icns in Resources */ = {isa = PBXBuildFile; fileRef = 781AA63A13C14E65AC3B223B /* CinderApp.icns */; }; + 5323E6B20EAFCA74003A9687 /* CoreVideo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5323E6B10EAFCA74003A9687 /* CoreVideo.framework */; }; + 5F25DF991CAC2B0B00EF342D /* OpenCL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F25DF981CAC2B0B00EF342D /* OpenCL.framework */; }; + 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; }; + A0A096E4A2E045EEAEC5834E /* OpenCL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8E8A4660442C436FA22ECCAA /* OpenCL.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 006D720219952D00008149E2 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; + 006D720319952D00008149E2 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; }; + 0091D8F80E81B9330029341E /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = /System/Library/Frameworks/OpenGL.framework; sourceTree = ""; }; + 00B784AF0FF439BC000DE1D7 /* Accelerate.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accelerate.framework; path = System/Library/Frameworks/Accelerate.framework; sourceTree = SDKROOT; }; + 00B784B00FF439BC000DE1D7 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; + 00B784B10FF439BC000DE1D7 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioUnit.framework; path = System/Library/Frameworks/AudioUnit.framework; sourceTree = SDKROOT; }; + 00B784B20FF439BC000DE1D7 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; }; + 00B995581B128DF400A5C623 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; + 00B995591B128DF400A5C623 /* IOSurface.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOSurface.framework; path = System/Library/Frameworks/IOSurface.framework; sourceTree = SDKROOT; }; + 0FD8D549CA3F486A91A8D51E /* ocvKalmanApp.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.cpp; name = ocvKalmanApp.cpp; path = ../src/ocvKalmanApp.cpp; sourceTree = ""; }; + 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; + 29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; + 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; }; + 5323E6B10EAFCA74003A9687 /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = /System/Library/Frameworks/CoreVideo.framework; sourceTree = ""; }; + 5F25DF981CAC2B0B00EF342D /* OpenCL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenCL.framework; path = ../../../../../../../../System/Library/Frameworks/OpenCL.framework; sourceTree = ""; }; + 781AA63A13C14E65AC3B223B /* CinderApp.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = CinderApp.icns; path = ../resources/CinderApp.icns; sourceTree = ""; }; + 8D1107320486CEB800E47090 /* ocvKalman.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ocvKalman.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 8E8A4660442C436FA22ECCAA /* OpenCL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenCL.framework; path = System/Library/Frameworks/OpenCL.framework; sourceTree = SDKROOT; }; + D3EA0D23B98746679DC3FB32 /* ocvKalman_Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = "\"\""; path = ocvKalman_Prefix.pch; sourceTree = ""; }; + EB492CB436364FF4AB222417 /* CinderOpenCV.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = CinderOpenCV.h; path = ../../../include/CinderOpenCV.h; sourceTree = ""; }; + F6FBB63DF31740F9BB205785 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + F7493A6CA9584D6786EDC63C /* Resources.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = Resources.h; path = ../include/Resources.h; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 8D11072E0486CEB800E47090 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 006D720419952D00008149E2 /* AVFoundation.framework in Frameworks */, + 006D720519952D00008149E2 /* CoreMedia.framework in Frameworks */, + 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */, + 0091D8F90E81B9330029341E /* OpenGL.framework in Frameworks */, + 5323E6B20EAFCA74003A9687 /* CoreVideo.framework in Frameworks */, + 5F25DF991CAC2B0B00EF342D /* OpenCL.framework in Frameworks */, + 00B784B30FF439BC000DE1D7 /* Accelerate.framework in Frameworks */, + 00B784B40FF439BC000DE1D7 /* AudioToolbox.framework in Frameworks */, + 00B784B50FF439BC000DE1D7 /* AudioUnit.framework in Frameworks */, + 00B784B60FF439BC000DE1D7 /* CoreAudio.framework in Frameworks */, + 00B9955A1B128DF400A5C623 /* IOKit.framework in Frameworks */, + 00B9955B1B128DF400A5C623 /* IOSurface.framework in Frameworks */, + A0A096E4A2E045EEAEC5834E /* OpenCL.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 01B97315FEAEA392516A2CEA /* Blocks */ = { + isa = PBXGroup; + children = ( + A5E7DB3782CE480088A5A0CE /* OpenCV3 */, + ); + name = Blocks; + sourceTree = ""; + }; + 01C5CC264F114931B424B81F /* include */ = { + isa = PBXGroup; + children = ( + EB492CB436364FF4AB222417 /* CinderOpenCV.h */, + ); + name = include; + sourceTree = ""; + }; + 080E96DDFE201D6D7F000001 /* Source */ = { + isa = PBXGroup; + children = ( + 0FD8D549CA3F486A91A8D51E /* ocvKalmanApp.cpp */, + ); + name = Source; + sourceTree = ""; + }; + 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = { + isa = PBXGroup; + children = ( + 5F25DF981CAC2B0B00EF342D /* OpenCL.framework */, + 006D720219952D00008149E2 /* AVFoundation.framework */, + 006D720319952D00008149E2 /* CoreMedia.framework */, + 00B784AF0FF439BC000DE1D7 /* Accelerate.framework */, + 00B784B00FF439BC000DE1D7 /* AudioToolbox.framework */, + 00B784B10FF439BC000DE1D7 /* AudioUnit.framework */, + 00B784B20FF439BC000DE1D7 /* CoreAudio.framework */, + 5323E6B10EAFCA74003A9687 /* CoreVideo.framework */, + 0091D8F80E81B9330029341E /* OpenGL.framework */, + 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */, + 00B995581B128DF400A5C623 /* IOKit.framework */, + 00B995591B128DF400A5C623 /* IOSurface.framework */, + ); + name = "Linked Frameworks"; + sourceTree = ""; + }; + 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */ = { + isa = PBXGroup; + children = ( + 29B97324FDCFA39411CA2CEA /* AppKit.framework */, + 29B97325FDCFA39411CA2CEA /* Foundation.framework */, + ); + name = "Other Frameworks"; + sourceTree = ""; + }; + 19C28FACFE9D520D11CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 8D1107320486CEB800E47090 /* ocvKalman.app */, + ); + name = Products; + sourceTree = ""; + }; + 29B97314FDCFA39411CA2CEA /* ocvKalman */ = { + isa = PBXGroup; + children = ( + 01B97315FEAEA392516A2CEA /* Blocks */, + 29B97315FDCFA39411CA2CEA /* Headers */, + 080E96DDFE201D6D7F000001 /* Source */, + 29B97317FDCFA39411CA2CEA /* Resources */, + 29B97323FDCFA39411CA2CEA /* Frameworks */, + 19C28FACFE9D520D11CA2CBB /* Products */, + ); + name = ocvKalman; + sourceTree = ""; + }; + 29B97315FDCFA39411CA2CEA /* Headers */ = { + isa = PBXGroup; + children = ( + F7493A6CA9584D6786EDC63C /* Resources.h */, + D3EA0D23B98746679DC3FB32 /* ocvKalman_Prefix.pch */, + ); + name = Headers; + sourceTree = ""; + }; + 29B97317FDCFA39411CA2CEA /* Resources */ = { + isa = PBXGroup; + children = ( + 781AA63A13C14E65AC3B223B /* CinderApp.icns */, + F6FBB63DF31740F9BB205785 /* Info.plist */, + ); + name = Resources; + sourceTree = ""; + }; + 29B97323FDCFA39411CA2CEA /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */, + 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */, + 8E8A4660442C436FA22ECCAA /* OpenCL.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + A5E7DB3782CE480088A5A0CE /* OpenCV3 */ = { + isa = PBXGroup; + children = ( + 01C5CC264F114931B424B81F /* include */, + ); + name = OpenCV3; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 8D1107260486CEB800E47090 /* ocvKalman */ = { + isa = PBXNativeTarget; + buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "ocvKalman" */; + buildPhases = ( + 8D1107290486CEB800E47090 /* Resources */, + 8D11072C0486CEB800E47090 /* Sources */, + 8D11072E0486CEB800E47090 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ocvKalman; + productInstallPath = "$(HOME)/Applications"; + productName = ocvKalman; + productReference = 8D1107320486CEB800E47090 /* ocvKalman.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 29B97313FDCFA39411CA2CEA /* Project object */ = { + isa = PBXProject; + attributes = { + }; + buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "ocvKalman" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 1; + knownRegions = ( + English, + Japanese, + French, + German, + ); + mainGroup = 29B97314FDCFA39411CA2CEA /* ocvKalman */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 8D1107260486CEB800E47090 /* ocvKalman */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 8D1107290486CEB800E47090 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 315013285C1046BE8901F65A /* CinderApp.icns in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 8D11072C0486CEB800E47090 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 21FB560515E44BFBB3AA29ED /* ocvKalmanApp.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + C01FCF4B08A954540054247B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + GCC_DYNAMIC_NO_PIC = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = ocvKalman_Prefix.pch; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(HOME)/Applications"; + OTHER_LDFLAGS = ( + "\"$(CINDER_PATH)/lib/libcinder_d.a\"", + ../../../lib/macosx/libopencv_calib3d.a, + ../../../lib/macosx/libopencv_core.a, + ../../../lib/macosx/libopencv_features2d.a, + ../../../lib/macosx/libopencv_flann.a, + ../../../lib/macosx/libopencv_hal.a, + ../../../lib/macosx/libopencv_imgproc.a, + ../../../lib/macosx/libopencv_ml.a, + ../../../lib/macosx/libopencv_objdetect.a, + ../../../lib/macosx/libopencv_photo.a, + ../../../lib/macosx/libopencv_shape.a, + ../../../lib/macosx/libopencv_stitching.a, + ../../../lib/macosx/libopencv_superres.a, + ../../../lib/macosx/libopencv_video.a, + ../../../lib/macosx/libopencv_ts.a, + ../../../lib/macosx/libopencv_videoio.a, + ../../../lib/macosx/libopencv_videostab.a, + ../../../lib/macosx/libippicv.a, + "\"-lz\"", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.libcinder.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = ocvKalman; + SYMROOT = ./build; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + C01FCF4C08A954540054247B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_FAST_MATH = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = YES; + GCC_OPTIMIZATION_LEVEL = 3; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = ocvKalman_Prefix.pch; + GCC_PREPROCESSOR_DEFINITIONS = ( + "NDEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(HOME)/Applications"; + OTHER_LDFLAGS = ( + "\"$(CINDER_PATH)/lib/libcinder.a\"", + ../../../lib/macosx/libopencv_calib3d.a, + ../../../lib/macosx/libopencv_core.a, + ../../../lib/macosx/libopencv_features2d.a, + ../../../lib/macosx/libopencv_flann.a, + ../../../lib/macosx/libopencv_hal.a, + ../../../lib/macosx/libopencv_imgproc.a, + ../../../lib/macosx/libopencv_ml.a, + ../../../lib/macosx/libopencv_objdetect.a, + ../../../lib/macosx/libopencv_photo.a, + ../../../lib/macosx/libopencv_shape.a, + ../../../lib/macosx/libopencv_stitching.a, + ../../../lib/macosx/libopencv_superres.a, + ../../../lib/macosx/libopencv_video.a, + ../../../lib/macosx/libopencv_ts.a, + ../../../lib/macosx/libopencv_videoio.a, + ../../../lib/macosx/libopencv_videostab.a, + ../../../lib/macosx/libippicv.a, + "\"-lz\"", + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.libcinder.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = ocvKalman; + STRIP_INSTALLED_PRODUCT = YES; + SYMROOT = ./build; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + C01FCF4F08A954540054247B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CINDER_PATH = ../../../../..; + CLANG_CXX_LANGUAGE_STANDARD = "c++11"; + CLANG_CXX_LIBRARY = "libc++"; + ENABLE_TESTABILITY = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = "\"$(CINDER_PATH)/include\""; + MACOSX_DEPLOYMENT_TARGET = 10.8; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + USER_HEADER_SEARCH_PATHS = "\"$(CINDER_PATH)/include\" ../include ../../../include"; + }; + name = Debug; + }; + C01FCF5008A954540054247B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CINDER_PATH = ../../../../..; + CLANG_CXX_LANGUAGE_STANDARD = "c++11"; + CLANG_CXX_LIBRARY = "libc++"; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = "\"$(CINDER_PATH)/include\""; + MACOSX_DEPLOYMENT_TARGET = 10.8; + SDKROOT = macosx; + USER_HEADER_SEARCH_PATHS = "\"$(CINDER_PATH)/include\" ../include ../../../include"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "ocvKalman" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C01FCF4B08A954540054247B /* Debug */, + C01FCF4C08A954540054247B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C01FCF4E08A954540054247B /* Build configuration list for PBXProject "ocvKalman" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C01FCF4F08A954540054247B /* Debug */, + C01FCF5008A954540054247B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; +} diff --git a/samples/ocvKalman/xcode/ocvKalman_Prefix.pch b/samples/ocvKalman/xcode/ocvKalman_Prefix.pch new file mode 100644 index 0000000..226b4a6 --- /dev/null +++ b/samples/ocvKalman/xcode/ocvKalman_Prefix.pch @@ -0,0 +1,12 @@ +#if defined( __cplusplus ) + #include "cinder/Cinder.h" + + #include "cinder/app/App.h" + + #include "cinder/gl/gl.h" + + #include "cinder/CinderMath.h" + #include "cinder/Matrix.h" + #include "cinder/Vector.h" + #include "cinder/Quaternion.h" +#endif diff --git a/samples/ocvKalman/xcode_ios/Images.xcassets/LaunchImage.launchimage/Contents.json b/samples/ocvKalman/xcode_ios/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..acfca01 --- /dev/null +++ b/samples/ocvKalman/xcode_ios/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,110 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "8.0", + "subtype" : "736h", + "filename" : "Default-736h@3x~iphone.png", + "scale" : "3x" + }, + { + "orientation" : "landscape", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "8.0", + "subtype" : "736h", + "scale" : "3x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "667h", + "filename" : "Default-667@2x.png", + "minimum-system-version" : "8.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "retina4", + "filename" : "Default-568h@2x.png", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "filename" : "Default-568h@2x.png", + "subtype" : "retina4", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/samples/ocvKalman/xcode_ios/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png b/samples/ocvKalman/xcode_ios/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png new file mode 100644 index 0000000..3721366 Binary files /dev/null and b/samples/ocvKalman/xcode_ios/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png differ diff --git a/samples/ocvKalman/xcode_ios/Images.xcassets/LaunchImage.launchimage/Default-667@2x.png b/samples/ocvKalman/xcode_ios/Images.xcassets/LaunchImage.launchimage/Default-667@2x.png new file mode 100644 index 0000000..8f2c501 Binary files /dev/null and b/samples/ocvKalman/xcode_ios/Images.xcassets/LaunchImage.launchimage/Default-667@2x.png differ diff --git a/samples/ocvKalman/xcode_ios/Images.xcassets/LaunchImage.launchimage/Default-736h@3x~iphone.png b/samples/ocvKalman/xcode_ios/Images.xcassets/LaunchImage.launchimage/Default-736h@3x~iphone.png new file mode 100644 index 0000000..dcbedba Binary files /dev/null and b/samples/ocvKalman/xcode_ios/Images.xcassets/LaunchImage.launchimage/Default-736h@3x~iphone.png differ diff --git a/samples/ocvKalman/xcode_ios/Info.plist b/samples/ocvKalman/xcode_ios/Info.plist new file mode 100644 index 0000000..266b800 --- /dev/null +++ b/samples/ocvKalman/xcode_ios/Info.plist @@ -0,0 +1,57 @@ + + + + + CFBundleDevelopmentRegion + en + UILaunchStoryboardName + LaunchScreen.xib + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + + CFBundleIcons + + CFBundlePrimaryIcon + + CFBundleIconFiles + + + CinderApp_ios.png + + UIPrerenderedIcon + + + + CFBundleIdentifier + org.libcinder.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + NSMainNibFile + + NSMainNibFile~ipad + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + + + diff --git a/samples/ocvKalman/xcode_ios/LaunchScreen.xib b/samples/ocvKalman/xcode_ios/LaunchScreen.xib new file mode 100644 index 0000000..e774fe5 --- /dev/null +++ b/samples/ocvKalman/xcode_ios/LaunchScreen.xib @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/samples/ocvKalman/xcode_ios/ocvKalman.xcodeproj/project.pbxproj b/samples/ocvKalman/xcode_ios/ocvKalman.xcodeproj/project.pbxproj new file mode 100644 index 0000000..e4f6f89 --- /dev/null +++ b/samples/ocvKalman/xcode_ios/ocvKalman.xcodeproj/project.pbxproj @@ -0,0 +1,391 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 0087D25512CD809F002CD69F /* CoreText.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0087D25412CD809F002CD69F /* CoreText.framework */; }; + 00CFDF6B1138442D0091E310 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00CFDF6A1138442D0091E310 /* CoreGraphics.framework */; }; + C725E001121DAC8FFFFA18FF /* ImageIO.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00CFDF6A1138442D0091FFFF /* ImageIO.framework */; }; + DDDDE001121DAC8FFFFADDDD /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DDDDDF6A1138442D0091DDDD /* MobileCoreServices.framework */; }; + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; + 28FD15000DC6FC520079059D /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28FD14FF0DC6FC520079059D /* OpenGLES.framework */; }; + 28FD15080DC6FC5B0079059D /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28FD15070DC6FC5B0079059D /* QuartzCore.framework */; }; + C725DFFE121DAC7F00FA186B /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C727C02B121B400300192073 /* CoreMedia.framework */; settings = { + ATTRIBUTES = ( + Weak, + ); +}; }; + C725E001121DAC8F00FA186B /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C725E000121DAC8F00FA186B /* AVFoundation.framework */; settings = { + ATTRIBUTES = ( + Weak, + ); +}; }; + C727C02E121B400300192073 /* CoreVideo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C727C02D121B400300192073 /* CoreVideo.framework */; settings = { + ATTRIBUTES = ( + Weak, + ); +}; }; + C7FB19D6124BC0D70045AFD2 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C7FB19D5124BC0D70045AFD2 /* AudioToolbox.framework */; }; + 00A66A361965AC8800B17EB3 /* Accelerate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00A66A351965AC8800B17EB3 /* Accelerate.framework */; }; + 00748058165D41390024B57A /* assets in Resources */ = {isa = PBXBuildFile; fileRef = 00748057165D41390024B57A /* assets */; }; + 89B8CB22C7694C40A2E48CCA /* CinderOpenCV.h in Headers */ = {isa = PBXBuildFile; fileRef = 24E0937604F641F59F8CE4E6 /* CinderOpenCV.h */; }; + 85D18FE8E3CC43559948C4AB /* ocvKalman_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = 08D820552C9A4EBFB0647374 /* ocvKalman_Prefix.pch */; }; + 224452EA48B5462682591274 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 85F7262BADD042818E5F79B9 /* LaunchScreen.xib */; }; + 1D14A6A416BA4E3A93D48FEE /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 62FFE5E7A446496DAB407245 /* Images.xcassets */; }; + B4F7A1426F05414898A3B002 /* CinderApp_ios.png in Resources */ = {isa = PBXBuildFile; fileRef = 57BE44021ACD4C3FA1E68C08 /* CinderApp_ios.png */; }; + 6B8C2FB892154F309C58258F /* Resources.h in Headers */ = {isa = PBXBuildFile; fileRef = 55C107461ACF43BC8F4B9908 /* Resources.h */; }; + DE95656C58164BB9BD6667C0 /* ocvKalmanApp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DF67187E6E924FC8A31BD5E4 /* ocvKalmanApp.cpp */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 00692BCF14FF149000D0A05E /* ocvKalman.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ocvKalman.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 0087D25412CD809F002CD69F /* CoreText.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreText.framework; path = System/Library/Frameworks/CoreText.framework; sourceTree = SDKROOT; }; + 00CFDF6A1138442D0091E310 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 00CFDF6A1138442D0091FFFF /* ImageIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ImageIO.framework; path = System/Library/Frameworks/ImageIO.framework; sourceTree = SDKROOT; }; + DDDDDF6A1138442D0091DDDD /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; + 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 28FD14FF0DC6FC520079059D /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; }; + 28FD15070DC6FC5B0079059D /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; + C725E000121DAC8F00FA186B /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; + C727C02B121B400300192073 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; }; + C727C02D121B400300192073 /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = System/Library/Frameworks/CoreVideo.framework; sourceTree = SDKROOT; }; + C7FB19D5124BC0D70045AFD2 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; + 00A66A351965AC8800B17EB3 /* Accelerate.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accelerate.framework; path = System/Library/Frameworks/Accelerate.framework; sourceTree = SDKROOT; }; + 00748057165D41390024B57A /* assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = assets; path = ../assets; sourceTree = ""; }; + DF67187E6E924FC8A31BD5E4 /* ocvKalmanApp.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.cpp; path = ../src/ocvKalmanApp.cpp; sourceTree = ""; name = ocvKalmanApp.cpp; }; + 55C107461ACF43BC8F4B9908 /* Resources.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ../include/Resources.h; sourceTree = ""; name = Resources.h; }; + 57BE44021ACD4C3FA1E68C08 /* CinderApp_ios.png */ = {isa = PBXFileReference; lastKnownFileType = "\"\""; path = ../resources/CinderApp_ios.png; sourceTree = ""; name = CinderApp_ios.png; }; + 62FFE5E7A446496DAB407245 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = "\"\""; path = Images.xcassets; sourceTree = ""; name = Images.xcassets; }; + 85F7262BADD042818E5F79B9 /* LaunchScreen.xib */ = {isa = PBXFileReference; lastKnownFileType = "\"\""; path = LaunchScreen.xib; sourceTree = ""; name = LaunchScreen.xib; }; + 9F5DAFCF64F349C4B531AEE0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; name = Info.plist; }; + 08D820552C9A4EBFB0647374 /* ocvKalman_Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = "\"\""; path = ocvKalman_Prefix.pch; sourceTree = ""; name = ocvKalman_Prefix.pch; }; + 24E0937604F641F59F8CE4E6 /* CinderOpenCV.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ../../../include/CinderOpenCV.h; sourceTree = ""; name = CinderOpenCV.h; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 00692BCC14FF149000D0A05E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + C725E001121DAC8F00FA186B /* AVFoundation.framework in Frameworks */, + C725DFFE121DAC7F00FA186B /* CoreMedia.framework in Frameworks */, + C725E001121DAC8FFFFA18FF /* ImageIO.framework in Frameworks */, + DDDDE001121DAC8FFFFADDDD /* MobileCoreServices.framework in Frameworks */, + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, + 28FD15000DC6FC520079059D /* OpenGLES.framework in Frameworks */, + 28FD15080DC6FC5B0079059D /* QuartzCore.framework in Frameworks */, + 00CFDF6B1138442D0091E310 /* CoreGraphics.framework in Frameworks */, + C727C02E121B400300192073 /* CoreVideo.framework in Frameworks */, + C7FB19D6124BC0D70045AFD2 /* AudioToolbox.framework in Frameworks */, + 00A66A361965AC8800B17EB3 /* Accelerate.framework in Frameworks */, + 0087D25512CD809F002CD69F /* CoreText.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 00692BC414FF149000D0A05E = { + isa = PBXGroup; + children = ( + 99692BD914FF149000DFFFFF /* Blocks */, + 99692BD914FF149000D0A05F /* Headers */, + 00692BD914FF149000D0A05E /* Source */, + 00692BD914FF149000D0FFFF /* Resources */, + 00692BD214FF149000D0A05E /* Frameworks */, + 00692BD014FF149000D0A05E /* Products */, + ); + sourceTree = ""; + }; + 00692BD014FF149000D0A05E /* Products */ = { + isa = PBXGroup; + children = ( + 00692BCF14FF149000D0A05E /* ocvKalman.app */, + ); + name = Products; + sourceTree = ""; + }; + 00692BD214FF149000D0A05E /* Frameworks */ = { + isa = PBXGroup; + children = ( + C7FB19D5124BC0D70045AFD2 /* AudioToolbox.framework */, + 00A66A351965AC8800B17EB3 /* Accelerate.framework */, + C727C02B121B400300192073 /* CoreMedia.framework */, + C727C02D121B400300192073 /* CoreVideo.framework */, + 28FD15070DC6FC5B0079059D /* QuartzCore.framework */, + 28FD14FF0DC6FC520079059D /* OpenGLES.framework */, + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, + 1D30AB110D05D00D00671497 /* Foundation.framework */, + 00CFDF6A1138442D0091E310 /* CoreGraphics.framework */, + 00CFDF6A1138442D0091FFFF /* ImageIO.framework */, + DDDDDF6A1138442D0091DDDD /* MobileCoreServices.framework */, + C725E000121DAC8F00FA186B /* AVFoundation.framework */, + 0087D25412CD809F002CD69F /* CoreText.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + C425CEFB8119465F87A8C1AB /* include */ = { + isa = PBXGroup; + children = ( + 24E0937604F641F59F8CE4E6 /* CinderOpenCV.h */, + ); + name = include; + sourceTree = ""; + }; + 9830FCC9D5B84F818CE2C4FD /* OpenCV3 */ = { + isa = PBXGroup; + children = ( + C425CEFB8119465F87A8C1AB /* include */, + ); + name = OpenCV3; + sourceTree = ""; + }; + 99692BD914FF149000DFFFFF /* Blocks */ = { + isa = PBXGroup; + children = ( + 9830FCC9D5B84F818CE2C4FD /* OpenCV3 */, + ); + name = Blocks; + sourceTree = ""; + }; + 99692BD914FF149000D0A05F /* Headers */ = { + isa = PBXGroup; + children = ( + 55C107461ACF43BC8F4B9908 /* Resources.h */, + 08D820552C9A4EBFB0647374 /* ocvKalman_Prefix.pch */, + ); + name = Headers; + sourceTree = ""; + }; + 00692BD914FF149000D0A05E /* Source */ = { + isa = PBXGroup; + children = ( + DF67187E6E924FC8A31BD5E4 /* ocvKalmanApp.cpp */, + ); + name = Source; + sourceTree = ""; + }; + 00692BD914FF149000D0FFFF /* Resources */ = { + isa = PBXGroup; + children = ( + 00748057165D41390024B57A /* assets */, + 57BE44021ACD4C3FA1E68C08 /* CinderApp_ios.png */, + 62FFE5E7A446496DAB407245 /* Images.xcassets */, + 85F7262BADD042818E5F79B9 /* LaunchScreen.xib */, + 9F5DAFCF64F349C4B531AEE0 /* Info.plist */, + ); + name = Resources; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 00692BCE14FF149000D0A05E /* ocvKalman */ = { + isa = PBXNativeTarget; + buildConfigurationList = 00692BF514FF149000D0A05E /* Build configuration list for PBXNativeTarget "ocvKalman" */; + buildPhases = ( + 00692BCB14FF149000D0A05E /* Sources */, + 00692BCC14FF149000D0A05E /* Frameworks */, + 00692BCD14FF149000D0A05E /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ocvKalman; + productName = ocvKalman; + productReference = 00692BCF14FF149000D0A05E /* ocvKalman.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 00692BC614FF149000D0A05E /* Project object */ = { + isa = PBXProject; + buildConfigurationList = 00692BC914FF149000D0A05E /* Build configuration list for PBXProject "ocvKalman" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 00692BC414FF149000D0A05E; + productRefGroup = 00692BD014FF149000D0A05E /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 00692BCE14FF149000D0A05E /* ocvKalman */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 00692BCD14FF149000D0A05E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 00748058165D41390024B57A /* assets in Resources */, + B4F7A1426F05414898A3B002 /* CinderApp_ios.png in Resources */, + 1D14A6A416BA4E3A93D48FEE /* Images.xcassets in Resources */, + 224452EA48B5462682591274 /* LaunchScreen.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 00692BCB14FF149000D0A05E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DE95656C58164BB9BD6667C0 /* ocvKalmanApp.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 00692BF314FF149000D0A05E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "LaunchImage"; + DEAD_CODE_STRIPPING = YES; + CLANG_CXX_LANGUAGE_STANDARD = "c++11"; + CLANG_CXX_LIBRARY = "libc++"; + ARCHS = "armv7 arm64"; + ALWAYS_SEARCH_USER_PATHS = NO; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + CINDER_PATH = "../../../../.."; + HEADER_SEARCH_PATHS = "\"$(CINDER_PATH)/include\""; + USER_HEADER_SEARCH_PATHS = ( + "\"$(CINDER_PATH)/include\" ../include", + ../../../include, + ); + }; + name = Debug; + }; + 00692BF414FF149000D0A05E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "LaunchImage"; + DEAD_CODE_STRIPPING = YES; + CLANG_CXX_LANGUAGE_STANDARD = "c++11"; + CLANG_CXX_LIBRARY = "libc++"; + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD)"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_PREPROCESSOR_DEFINITIONS = ( + "NDEBUG=1", + "$(inherited)", + ); + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + CINDER_PATH = "../../../../.."; + HEADER_SEARCH_PATHS = "\"$(CINDER_PATH)/include\""; + USER_HEADER_SEARCH_PATHS = ( + "\"$(CINDER_PATH)/include\" ../include", + ../../../include, + ); + }; + name = Release; + }; + 00692BF614FF149000D0A05E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "ocvKalman_Prefix.pch"; + INFOPLIST_FILE = "Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + "OTHER_LDFLAGS[sdk=iphoneos*][arch=*]" = ( + "\"$(CINDER_PATH)/lib/libcinder-iphone_d.a\"", + "-lz", + ../../../lib/ios/libopencv.a, + ); + "OTHER_LDFLAGS[sdk=iphonesimulator*][arch=*]" = ( + "\"$(CINDER_PATH)/lib/libcinder-iphone-sim_d.a\"", + "-lz", + "\"../../../lib/ios-sim/libopencv.a\"", + ); + }; + name = Debug; + }; + 00692BF714FF149000D0A05E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "ocvKalman_Prefix.pch"; + INFOPLIST_FILE = "Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + "OTHER_LDFLAGS[sdk=iphoneos*][arch=*]" = ( + "\"$(CINDER_PATH)/lib/libcinder-iphone.a\"", + "-lz", + ../../../lib/ios/libopencv.a, + ); + "OTHER_LDFLAGS[sdk=iphonesimulator*][arch=*]" = ( + "\"$(CINDER_PATH)/lib/libcinder-iphone-sim.a\"", + "-lz", + "\"../../../lib/ios-sim/libopencv.a\"", + ); + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 00692BC914FF149000D0A05E /* Build configuration list for PBXProject "ocvKalman" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 00692BF314FF149000D0A05E /* Debug */, + 00692BF414FF149000D0A05E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 00692BF514FF149000D0A05E /* Build configuration list for PBXNativeTarget "ocvKalman" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 00692BF614FF149000D0A05E /* Debug */, + 00692BF714FF149000D0A05E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 00692BC614FF149000D0A05E /* Project object */; +} diff --git a/samples/ocvKalman/xcode_ios/ocvKalman_Prefix.pch b/samples/ocvKalman/xcode_ios/ocvKalman_Prefix.pch new file mode 100644 index 0000000..b1177b5 --- /dev/null +++ b/samples/ocvKalman/xcode_ios/ocvKalman_Prefix.pch @@ -0,0 +1,12 @@ +#if defined( __cplusplus ) + #include "cinder/Cinder.h" + + #include "cinder/app/App.h" + + #include "cinder/gl/gl.h" + + #include "cinder/CinderMath.h" + #include "cinder/Matrix.h" + #include "cinder/Vector.h" + #include "cinder/Quaternion.h" +#endif \ No newline at end of file