├── .gitignore ├── LICENSE ├── README.md ├── build ├── Debug │ └── grabcut └── grabcut.build │ └── Debug │ └── grabcut.build │ ├── Objects-normal │ └── x86_64 │ │ ├── grabcut.LinkFileList │ │ ├── grabcut.d │ │ ├── grabcut.dia │ │ ├── grabcut.o │ │ ├── grabcut_dependency_info.dat │ │ ├── main.d │ │ ├── main.dia │ │ └── main.o │ ├── dgph │ ├── dgph~ │ ├── grabcut-all-non-framework-target-headers.hmap │ ├── grabcut-all-target-headers.hmap │ ├── grabcut-generated-files.hmap │ ├── grabcut-own-target-headers.hmap │ ├── grabcut-project-headers.hmap │ └── grabcut.hmap ├── dataset ├── img │ └── ASAP │ │ ├── 00000101.jpg │ │ ├── 00000102.jpg │ │ ├── 00000103.jpg │ │ ├── 00000104.jpg │ │ ├── 00000105.jpg │ │ ├── 00000106.jpg │ │ ├── 00000107.jpg │ │ ├── 00000108.jpg │ │ ├── 00000109.jpg │ │ ├── 00000110.jpg │ │ ├── 00000111.jpg │ │ ├── 00000112.jpg │ │ ├── 00000113.jpg │ │ ├── 00000114.jpg │ │ ├── 00000115.jpg │ │ ├── 00000116.jpg │ │ ├── 00000117.jpg │ │ ├── 00000118.jpg │ │ ├── 00000119.jpg │ │ └── 00000120.jpg └── mask │ └── ASAP │ ├── 00000101.jpg │ ├── 00000102.jpg │ ├── 00000103.jpg │ ├── 00000104.jpg │ ├── 00000105.jpg │ ├── 00000106.jpg │ ├── 00000107.jpg │ ├── 00000108.jpg │ ├── 00000109.jpg │ ├── 00000110.jpg │ ├── 00000111.jpg │ ├── 00000112.jpg │ ├── 00000113.jpg │ ├── 00000114.jpg │ ├── 00000115.jpg │ ├── 00000116.jpg │ ├── 00000117.jpg │ ├── 00000118.jpg │ ├── 00000119.jpg │ └── 00000120.jpg ├── grabcut.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ ├── Harsha.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ │ └── ali.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ ├── Harsha.xcuserdatad │ └── xcschemes │ │ ├── grabcut.xcscheme │ │ └── xcschememanagement.plist │ └── ali.xcuserdatad │ └── xcschemes │ ├── grabcut.xcscheme │ └── xcschememanagement.plist ├── grabcut ├── grabcut.cpp ├── grabcut.hpp └── main.cpp └── instructions_grabcut_controls.png /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 ArtFab @ Carnegie Mellon School of Art 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Grabcut 2 | Labeling tool for machine vision based segmentation, based on [work by Kris Kitani](http://www.cs.cmu.edu/~kkitani/datasets/) 3 | 4 | ## Dependencies 5 | ### IDE 6 | This project is ported to work in Apple's [Xcode](https://developer.apple.com/xcode/downloads/); it tested with Xcode 7.3.1. 7 | 8 | This project also uses the OpenCV library; it is tested with Versions or 2.4.12 and 2.4.13. 9 | 10 | ### Installing OpenCV on OS X 11 | Two ways to install OpenCV on OS X; we recommend the first: 12 | 1. Use [Homebrew](http://brew.sh), from the terminal: 13 | ``` 14 | brew update 15 | brew tap homebrew/science 16 | brew install opencv 17 | ``` 18 | 19 | * Note: Make sure OpenCV's dependencies are also installed, you can check using `brew info opencv` 20 | 21 | 2. Download [OpenCV](http://opencv.org/downloads.html) and building it using [cMake](https://cmake.org/download/) 22 | * [This tutorial](http://blogs.wcode.org/2014/10/howto-install-build-and-use-opencv-macosx-10-10/) provides greater detail for setting up OpenCV with cMake and Xcode. 23 | 24 | ## Project Installation 25 | To install the Grabcut project, complete the following steps: 26 | 27 | 1. Clone this repository: 28 | ``` 29 | git clone with https://github.com/cmuartfab/grabcut.git` 30 | ``` 31 | 32 | 2. Double click `grabcut.xcodeproj` to open it in Xcode 33 | 34 | 3. Navigate to the /usr/local/lib directory and **select all** of the *libopencv.dylib* files and drag and drop them into the *lib* folder in the Xcode project. You should see all the `libopencv.dylib` files in the Grabcut project lib folder. 35 | 36 | 5. In the Xcode project's *build settings* Under *targets* on the left column, select grabcut. 37 | 38 | 7. Make sure the paths under `Library Search Paths` inclure the directory where OpenCV is installed on your machine. If you used Homebrew to install OpenCV, it should be in `usr/local/Cellar` 39 | 40 | ## Running the Xcode project 41 | 42 | 1. Double click `grabcut.xcodeproj` to open it in Xcode 43 | 2. *grabcut/main.cpp*, update this line with the right path to the datasets folder 44 | 45 | ``` 46 | string root = "/xxx/dataset/"; //Update this line to point to your dataset folder 47 | ``` 48 | 49 | 3. To label and generate masks for new images, add new images to 'dataset/img/ASAP/' and name them using names with the format *00000xxx.jpg*, starting at 101, like this: 50 | 51 | ``` 52 | 00000101.jpg 53 | 00000102.jpg 54 | 00000103.jpg 55 | ... 56 | ``` 57 | 58 | 4. Label the foreground and background with the following keys: 59 | 60 | * 'b' - Background Mode: using the mouse, draw Green lines on the background, outlining the foreground object (see top left of image below) 61 | * 'f' - Foreground Mode: using the mouse, draw Red lines within the outline of the foreground object (see top left of image below) 62 | * 'd' - Done: moves to the next image 63 | * 'r' - Reset: resets current image 64 | 65 | ![alt tag](https://raw.githubusercontent.com/cmuartfab/grabcut/master/instructions_grabcut_controls.png) 66 | 67 | * Top Left: Green background and red foreground lines 68 | * Top Right: Foreground background separation; Foreground in pulple, and background in green 69 | * Bottom Left: calculated mask 70 | * Bottom Right: Mask applied to original source image 71 | -------------------------------------------------------------------------------- /build/Debug/grabcut: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/build/Debug/grabcut -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/grabcut.LinkFileList: -------------------------------------------------------------------------------- 1 | /Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/grabcut.o 2 | /Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/main.o 3 | -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/grabcut.d: -------------------------------------------------------------------------------- 1 | dependencies: \ 2 | /Users/Harsha/Documents/CMU\ Course\ Documents/Research\ -\ Vision/Kitani's\ Code/grabcut/grabcut/grabcut/grabcut.cpp 3 | -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/grabcut.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/grabcut.dia -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/grabcut.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/grabcut.o -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/grabcut_dependency_info.dat: -------------------------------------------------------------------------------- 1 | @(#)PROGRAM:ld PROJECT:ld64-253.3.3 2 | /Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/grabcut.LinkFileList/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/grabcut.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/main.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_calib3d.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_calib3d.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_calib3d.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_calib3d.a/usr/local/lib/libopencv_calib3d.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_contrib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_contrib.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_contrib.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_contrib.a/usr/local/lib/libopencv_contrib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_core.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_core.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_core.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_core.a/usr/local/lib/libopencv_core.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_features2d.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_features2d.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_features2d.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_features2d.a/usr/local/lib/libopencv_features2d.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_flann.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_flann.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_flann.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_flann.a/usr/local/lib/libopencv_flann.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_gpu.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_gpu.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_gpu.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_gpu.a/usr/local/lib/libopencv_gpu.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_highgui.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_highgui.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_highgui.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_highgui.a/usr/local/lib/libopencv_highgui.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_imgproc.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_imgproc.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_imgproc.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_imgproc.a/usr/local/lib/libopencv_imgproc.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_legacy.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_legacy.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_legacy.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_legacy.a/usr/local/lib/libopencv_legacy.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_ml.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_ml.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_ml.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_ml.a/usr/local/lib/libopencv_ml.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_nonfree.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_nonfree.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_nonfree.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_nonfree.a/usr/local/lib/libopencv_nonfree.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_objdetect.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_objdetect.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_objdetect.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_objdetect.a/usr/local/lib/libopencv_objdetect.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_ocl.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_ocl.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_ocl.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_ocl.a/usr/local/lib/libopencv_ocl.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_photo.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_photo.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_photo.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_photo.a/usr/local/lib/libopencv_photo.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_stitching.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_stitching.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_stitching.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_stitching.a/usr/local/lib/libopencv_stitching.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_superres.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_superres.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_superres.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_superres.a/usr/local/lib/libopencv_superres.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_ts.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_ts.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_ts.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_ts.a/usr/local/lib/libopencv_ts.tbd/usr/local/lib/libopencv_ts.dylib/usr/local/lib/libopencv_ts.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_video.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_video.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_video.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_video.a/usr/local/lib/libopencv_video.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_videostab.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_videostab.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_videostab.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libopencv_videostab.a/usr/local/lib/libopencv_videostab.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libc++.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libc++.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libc++.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libc++.a/usr/local/lib/libc++.tbd/usr/local/lib/libc++.dylib/usr/local/lib/libc++.so/usr/local/lib/libc++.a/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libSystem.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libSystem.dylib/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libSystem.so/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libSystem.a/usr/local/lib/libSystem.tbd/usr/local/lib/libSystem.dylib/usr/local/lib/libSystem.so/usr/local/lib/libSystem.a/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.0/lib/darwin/libclang_rt.osx.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.0/lib/darwin/libclang_rt.osx.a/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.0/lib/darwin/libclang_rt.osx.tbd@/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/grabcut/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/grabcut.o/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/main.o/usr/local/lib/libopencv_calib3d.dylib/usr/local/lib/libopencv_contrib.dylib/usr/local/lib/libopencv_core.dylib/usr/local/lib/libopencv_features2d.dylib/usr/local/lib/libopencv_flann.dylib/usr/local/lib/libopencv_gpu.dylib/usr/local/lib/libopencv_highgui.dylib/usr/local/lib/libopencv_imgproc.dylib/usr/local/lib/libopencv_legacy.dylib/usr/local/lib/libopencv_ml.dylib/usr/local/lib/libopencv_nonfree.dylib/usr/local/lib/libopencv_objdetect.dylib/usr/local/lib/libopencv_ocl.dylib/usr/local/lib/libopencv_photo.dylib/usr/local/lib/libopencv_stitching.dylib/usr/local/lib/libopencv_superres.dylib/usr/local/lib/libopencv_ts.a/usr/local/lib/libopencv_video.dylib/usr/local/lib/libopencv_videostab.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libc++.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libSystem.tbd/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.0/lib/darwin/libclang_rt.osx.a/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libcache.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libcache.dylib/usr/local/lib/libcache.dylib.tbd/usr/local/lib/libcache.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcache.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcache.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libcache.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libcommonCrypto.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libcommonCrypto.dylib/usr/local/lib/libcommonCrypto.dylib.tbd/usr/local/lib/libcommonCrypto.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcommonCrypto.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcommonCrypto.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libcommonCrypto.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libcompiler_rt.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libcompiler_rt.dylib/usr/local/lib/libcompiler_rt.dylib.tbd/usr/local/lib/libcompiler_rt.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcompiler_rt.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcompiler_rt.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libcompiler_rt.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libcopyfile.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libcopyfile.dylib/usr/local/lib/libcopyfile.dylib.tbd/usr/local/lib/libcopyfile.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcopyfile.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcopyfile.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libcopyfile.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libcorecrypto.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libcorecrypto.dylib/usr/local/lib/libcorecrypto.dylib.tbd/usr/local/lib/libcorecrypto.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcorecrypto.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libcorecrypto.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libcorecrypto.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libdispatch.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libdispatch.dylib/usr/local/lib/libdispatch.dylib.tbd/usr/local/lib/libdispatch.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libdispatch.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libdispatch.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libdispatch.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libdyld.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libdyld.dylib/usr/local/lib/libdyld.dylib.tbd/usr/local/lib/libdyld.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libdyld.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libdyld.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libdyld.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libkeymgr.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libkeymgr.dylib/usr/local/lib/libkeymgr.dylib.tbd/usr/local/lib/libkeymgr.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libkeymgr.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libkeymgr.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libkeymgr.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/liblaunch.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/liblaunch.dylib/usr/local/lib/liblaunch.dylib.tbd/usr/local/lib/liblaunch.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/liblaunch.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/liblaunch.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/liblaunch.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libmacho.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libmacho.dylib/usr/local/lib/libmacho.dylib.tbd/usr/local/lib/libmacho.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libmacho.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libmacho.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libmacho.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libquarantine.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libquarantine.dylib/usr/local/lib/libquarantine.dylib.tbd/usr/local/lib/libquarantine.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libquarantine.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libquarantine.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libquarantine.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libremovefile.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libremovefile.dylib/usr/local/lib/libremovefile.dylib.tbd/usr/local/lib/libremovefile.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libremovefile.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libremovefile.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libremovefile.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_asl.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_asl.dylib/usr/local/lib/libsystem_asl.dylib.tbd/usr/local/lib/libsystem_asl.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_asl.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_asl.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_asl.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_blocks.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_blocks.dylib/usr/local/lib/libsystem_blocks.dylib.tbd/usr/local/lib/libsystem_blocks.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_blocks.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_blocks.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_blocks.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_c.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_c.dylib/usr/local/lib/libsystem_c.dylib.tbd/usr/local/lib/libsystem_c.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_c.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_c.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_c.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_configuration.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_configuration.dylib/usr/local/lib/libsystem_configuration.dylib.tbd/usr/local/lib/libsystem_configuration.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_configuration.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_configuration.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_configuration.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_coreservices.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_coreservices.dylib/usr/local/lib/libsystem_coreservices.dylib.tbd/usr/local/lib/libsystem_coreservices.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_coreservices.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_coreservices.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_coreservices.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_coretls.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_coretls.dylib/usr/local/lib/libsystem_coretls.dylib.tbd/usr/local/lib/libsystem_coretls.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_coretls.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_coretls.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_coretls.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_dnssd.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_dnssd.dylib/usr/local/lib/libsystem_dnssd.dylib.tbd/usr/local/lib/libsystem_dnssd.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_dnssd.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_dnssd.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_dnssd.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_info.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_info.dylib/usr/local/lib/libsystem_info.dylib.tbd/usr/local/lib/libsystem_info.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_info.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_info.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_info.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_kernel.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_kernel.dylib/usr/local/lib/libsystem_kernel.dylib.tbd/usr/local/lib/libsystem_kernel.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_kernel.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_kernel.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_kernel.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_m.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_m.dylib/usr/local/lib/libsystem_m.dylib.tbd/usr/local/lib/libsystem_m.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_m.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_m.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_m.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_malloc.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_malloc.dylib/usr/local/lib/libsystem_malloc.dylib.tbd/usr/local/lib/libsystem_malloc.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_malloc.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_malloc.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_malloc.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_network.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_network.dylib/usr/local/lib/libsystem_network.dylib.tbd/usr/local/lib/libsystem_network.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_network.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_network.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_network.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_networkextension.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_networkextension.dylib/usr/local/lib/libsystem_networkextension.dylib.tbd/usr/local/lib/libsystem_networkextension.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_networkextension.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_networkextension.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_networkextension.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_notify.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_notify.dylib/usr/local/lib/libsystem_notify.dylib.tbd/usr/local/lib/libsystem_notify.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_notify.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_notify.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_notify.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_platform.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_platform.dylib/usr/local/lib/libsystem_platform.dylib.tbd/usr/local/lib/libsystem_platform.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_platform.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_platform.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_platform.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_pthread.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_pthread.dylib/usr/local/lib/libsystem_pthread.dylib.tbd/usr/local/lib/libsystem_pthread.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_pthread.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_pthread.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_pthread.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_sandbox.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_sandbox.dylib/usr/local/lib/libsystem_sandbox.dylib.tbd/usr/local/lib/libsystem_sandbox.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_sandbox.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_sandbox.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_sandbox.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_secinit.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_secinit.dylib/usr/local/lib/libsystem_secinit.dylib.tbd/usr/local/lib/libsystem_secinit.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_secinit.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_secinit.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_secinit.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_trace.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libsystem_trace.dylib/usr/local/lib/libsystem_trace.dylib.tbd/usr/local/lib/libsystem_trace.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_trace.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libsystem_trace.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libsystem_trace.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libunc.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libunc.dylib/usr/local/lib/libunc.dylib.tbd/usr/local/lib/libunc.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libunc.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libunc.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libunc.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libunwind.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libunwind.dylib/usr/local/lib/libunwind.dylib.tbd/usr/local/lib/libunwind.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libunwind.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libunwind.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libunwind.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libxpc.dylib.tbd/Users/Harsha/Documents/CMU Course Documents/Research - Vision/Kitani's Code/grabcut/grabcut/build/Debug/libxpc.dylib/usr/local/lib/libxpc.dylib.tbd/usr/local/lib/libxpc.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libxpc.dylib.tbd/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libxpc.dylib/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/system/libxpc.tbd -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/main.d: -------------------------------------------------------------------------------- 1 | dependencies: \ 2 | /Users/Harsha/Documents/CMU\ Course\ Documents/Research\ -\ Vision/Kitani's\ Code/grabcut/grabcut/grabcut/main.cpp \ 3 | /usr/local/include/opencv2/opencv.hpp \ 4 | /usr/local/include/opencv2/core/core_c.h \ 5 | /usr/local/include/opencv2/core/types_c.h \ 6 | /usr/local/include/opencv2/core/core.hpp \ 7 | /usr/local/include/opencv2/core/version.hpp \ 8 | /usr/local/include/opencv2/core/operations.hpp \ 9 | /usr/local/include/opencv2/core/mat.hpp \ 10 | /usr/local/include/opencv2/flann/miniflann.hpp \ 11 | /usr/local/include/opencv2/flann/defines.h \ 12 | /usr/local/include/opencv2/flann/config.h \ 13 | /usr/local/include/opencv2/imgproc/imgproc_c.h \ 14 | /usr/local/include/opencv2/imgproc/types_c.h \ 15 | /usr/local/include/opencv2/imgproc/imgproc.hpp \ 16 | /usr/local/include/opencv2/photo/photo.hpp \ 17 | /usr/local/include/opencv2/photo/photo_c.h \ 18 | /usr/local/include/opencv2/video/video.hpp \ 19 | /usr/local/include/opencv2/video/tracking.hpp \ 20 | /usr/local/include/opencv2/video/background_segm.hpp \ 21 | /usr/local/include/opencv2/features2d/features2d.hpp \ 22 | /usr/local/include/opencv2/objdetect/objdetect.hpp \ 23 | /usr/local/include/opencv2/calib3d/calib3d.hpp \ 24 | /usr/local/include/opencv2/core/affine.hpp \ 25 | /usr/local/include/opencv2/ml/ml.hpp \ 26 | /usr/local/include/opencv2/highgui/highgui_c.h \ 27 | /usr/local/include/opencv2/highgui/highgui.hpp \ 28 | /usr/local/include/opencv2/contrib/contrib.hpp \ 29 | /usr/local/include/opencv2/contrib/retina.hpp \ 30 | /usr/local/include/opencv2/contrib/openfabmap.hpp \ 31 | /Users/Harsha/Documents/CMU\ Course\ Documents/Research\ -\ Vision/Kitani's\ Code/grabcut/grabcut/grabcut/grabcut.hpp 32 | -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/main.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/main.dia -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/build/grabcut.build/Debug/grabcut.build/Objects-normal/x86_64/main.o -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/dgph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/build/grabcut.build/Debug/grabcut.build/dgph -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/dgph~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/build/grabcut.build/Debug/grabcut.build/dgph~ -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/grabcut-all-non-framework-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/build/grabcut.build/Debug/grabcut.build/grabcut-all-non-framework-target-headers.hmap -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/grabcut-all-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/build/grabcut.build/Debug/grabcut.build/grabcut-all-target-headers.hmap -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/grabcut-generated-files.hmap: -------------------------------------------------------------------------------- 1 | pamhx -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/grabcut-own-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/build/grabcut.build/Debug/grabcut.build/grabcut-own-target-headers.hmap -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/grabcut-project-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/build/grabcut.build/Debug/grabcut.build/grabcut-project-headers.hmap -------------------------------------------------------------------------------- /build/grabcut.build/Debug/grabcut.build/grabcut.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/build/grabcut.build/Debug/grabcut.build/grabcut.hmap -------------------------------------------------------------------------------- /dataset/img/ASAP/00000101.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000101.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000102.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000102.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000103.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000103.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000104.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000104.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000105.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000105.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000106.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000106.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000107.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000107.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000108.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000108.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000109.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000109.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000110.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000110.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000111.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000111.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000112.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000112.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000113.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000113.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000114.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000114.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000115.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000115.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000116.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000116.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000117.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000117.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000118.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000118.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000119.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000119.jpg -------------------------------------------------------------------------------- /dataset/img/ASAP/00000120.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/img/ASAP/00000120.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000101.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000101.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000102.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000102.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000103.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000103.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000104.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000104.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000105.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000105.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000106.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000106.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000107.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000107.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000108.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000108.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000109.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000109.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000110.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000110.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000111.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000111.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000112.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000112.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000113.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000113.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000114.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000114.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000115.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000115.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000116.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000116.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000117.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000117.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000118.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000118.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000119.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000119.jpg -------------------------------------------------------------------------------- /dataset/mask/ASAP/00000120.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/dataset/mask/ASAP/00000120.jpg -------------------------------------------------------------------------------- /grabcut.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3A513C371DA3FDD700B23871 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3A513C361DA3FDD700B23871 /* main.cpp */; }; 11 | 3A513C3F1DA3FDFA00B23871 /* grabcut.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3A513C3D1DA3FDFA00B23871 /* grabcut.cpp */; }; 12 | /* End PBXBuildFile section */ 13 | 14 | /* Begin PBXCopyFilesBuildPhase section */ 15 | 3A513C311DA3FDD700B23871 /* CopyFiles */ = { 16 | isa = PBXCopyFilesBuildPhase; 17 | buildActionMask = 2147483647; 18 | dstPath = /usr/share/man/man1/; 19 | dstSubfolderSpec = 0; 20 | files = ( 21 | ); 22 | runOnlyForDeploymentPostprocessing = 1; 23 | }; 24 | /* End PBXCopyFilesBuildPhase section */ 25 | 26 | /* Begin PBXFileReference section */ 27 | 3A513C331DA3FDD700B23871 /* grabcut */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = grabcut; sourceTree = BUILT_PRODUCTS_DIR; }; 28 | 3A513C361DA3FDD700B23871 /* main.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = ""; }; 29 | 3A513C3D1DA3FDFA00B23871 /* grabcut.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = grabcut.cpp; sourceTree = ""; }; 30 | 3A513C3E1DA3FDFA00B23871 /* grabcut.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = grabcut.hpp; sourceTree = ""; }; 31 | /* End PBXFileReference section */ 32 | 33 | /* Begin PBXFrameworksBuildPhase section */ 34 | 3A513C301DA3FDD700B23871 /* Frameworks */ = { 35 | isa = PBXFrameworksBuildPhase; 36 | buildActionMask = 2147483647; 37 | files = ( 38 | ); 39 | runOnlyForDeploymentPostprocessing = 0; 40 | }; 41 | /* End PBXFrameworksBuildPhase section */ 42 | 43 | /* Begin PBXGroup section */ 44 | 3A513C2A1DA3FDD700B23871 = { 45 | isa = PBXGroup; 46 | children = ( 47 | 41E33AD31DB44388007628FF /* lib */, 48 | 3A513C351DA3FDD700B23871 /* grabcut */, 49 | 3A513C341DA3FDD700B23871 /* Products */, 50 | ); 51 | sourceTree = ""; 52 | }; 53 | 3A513C341DA3FDD700B23871 /* Products */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | 3A513C331DA3FDD700B23871 /* grabcut */, 57 | ); 58 | name = Products; 59 | sourceTree = ""; 60 | }; 61 | 3A513C351DA3FDD700B23871 /* grabcut */ = { 62 | isa = PBXGroup; 63 | children = ( 64 | 3A513C3D1DA3FDFA00B23871 /* grabcut.cpp */, 65 | 3A513C3E1DA3FDFA00B23871 /* grabcut.hpp */, 66 | 3A513C361DA3FDD700B23871 /* main.cpp */, 67 | ); 68 | path = grabcut; 69 | sourceTree = ""; 70 | }; 71 | 41E33AD31DB44388007628FF /* lib */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | ); 75 | name = lib; 76 | sourceTree = ""; 77 | }; 78 | /* End PBXGroup section */ 79 | 80 | /* Begin PBXNativeTarget section */ 81 | 3A513C321DA3FDD700B23871 /* grabcut */ = { 82 | isa = PBXNativeTarget; 83 | buildConfigurationList = 3A513C3A1DA3FDD700B23871 /* Build configuration list for PBXNativeTarget "grabcut" */; 84 | buildPhases = ( 85 | 3A513C2F1DA3FDD700B23871 /* Sources */, 86 | 3A513C301DA3FDD700B23871 /* Frameworks */, 87 | 3A513C311DA3FDD700B23871 /* CopyFiles */, 88 | ); 89 | buildRules = ( 90 | ); 91 | dependencies = ( 92 | ); 93 | name = grabcut; 94 | productName = grabcut; 95 | productReference = 3A513C331DA3FDD700B23871 /* grabcut */; 96 | productType = "com.apple.product-type.tool"; 97 | }; 98 | /* End PBXNativeTarget section */ 99 | 100 | /* Begin PBXProject section */ 101 | 3A513C2B1DA3FDD700B23871 /* Project object */ = { 102 | isa = PBXProject; 103 | attributes = { 104 | LastUpgradeCheck = 0700; 105 | ORGANIZATIONNAME = "Harsha Chivukula"; 106 | TargetAttributes = { 107 | 3A513C321DA3FDD700B23871 = { 108 | CreatedOnToolsVersion = 7.0.1; 109 | }; 110 | }; 111 | }; 112 | buildConfigurationList = 3A513C2E1DA3FDD700B23871 /* Build configuration list for PBXProject "grabcut" */; 113 | compatibilityVersion = "Xcode 3.2"; 114 | developmentRegion = English; 115 | hasScannedForEncodings = 0; 116 | knownRegions = ( 117 | en, 118 | ); 119 | mainGroup = 3A513C2A1DA3FDD700B23871; 120 | productRefGroup = 3A513C341DA3FDD700B23871 /* Products */; 121 | projectDirPath = ""; 122 | projectRoot = ""; 123 | targets = ( 124 | 3A513C321DA3FDD700B23871 /* grabcut */, 125 | ); 126 | }; 127 | /* End PBXProject section */ 128 | 129 | /* Begin PBXSourcesBuildPhase section */ 130 | 3A513C2F1DA3FDD700B23871 /* Sources */ = { 131 | isa = PBXSourcesBuildPhase; 132 | buildActionMask = 2147483647; 133 | files = ( 134 | 3A513C3F1DA3FDFA00B23871 /* grabcut.cpp in Sources */, 135 | 3A513C371DA3FDD700B23871 /* main.cpp in Sources */, 136 | ); 137 | runOnlyForDeploymentPostprocessing = 0; 138 | }; 139 | /* End PBXSourcesBuildPhase section */ 140 | 141 | /* Begin XCBuildConfiguration section */ 142 | 3A513C381DA3FDD700B23871 /* Debug */ = { 143 | isa = XCBuildConfiguration; 144 | buildSettings = { 145 | ALWAYS_SEARCH_USER_PATHS = NO; 146 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 147 | CLANG_CXX_LIBRARY = "libc++"; 148 | CLANG_ENABLE_MODULES = YES; 149 | CLANG_ENABLE_OBJC_ARC = YES; 150 | CLANG_WARN_BOOL_CONVERSION = YES; 151 | CLANG_WARN_CONSTANT_CONVERSION = YES; 152 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 153 | CLANG_WARN_EMPTY_BODY = YES; 154 | CLANG_WARN_ENUM_CONVERSION = YES; 155 | CLANG_WARN_INT_CONVERSION = YES; 156 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 157 | CLANG_WARN_UNREACHABLE_CODE = YES; 158 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 159 | COPY_PHASE_STRIP = NO; 160 | DEBUG_INFORMATION_FORMAT = dwarf; 161 | ENABLE_STRICT_OBJC_MSGSEND = YES; 162 | ENABLE_TESTABILITY = YES; 163 | GCC_C_LANGUAGE_STANDARD = gnu99; 164 | GCC_DYNAMIC_NO_PIC = NO; 165 | GCC_NO_COMMON_BLOCKS = YES; 166 | GCC_OPTIMIZATION_LEVEL = 0; 167 | GCC_PREPROCESSOR_DEFINITIONS = ( 168 | "DEBUG=1", 169 | "$(inherited)", 170 | ); 171 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 172 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 173 | GCC_WARN_UNDECLARED_SELECTOR = YES; 174 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 175 | GCC_WARN_UNUSED_FUNCTION = YES; 176 | GCC_WARN_UNUSED_VARIABLE = YES; 177 | MACOSX_DEPLOYMENT_TARGET = 10.10; 178 | MTL_ENABLE_DEBUG_INFO = YES; 179 | ONLY_ACTIVE_ARCH = YES; 180 | SDKROOT = macosx; 181 | }; 182 | name = Debug; 183 | }; 184 | 3A513C391DA3FDD700B23871 /* Release */ = { 185 | isa = XCBuildConfiguration; 186 | buildSettings = { 187 | ALWAYS_SEARCH_USER_PATHS = NO; 188 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 189 | CLANG_CXX_LIBRARY = "libc++"; 190 | CLANG_ENABLE_MODULES = YES; 191 | CLANG_ENABLE_OBJC_ARC = YES; 192 | CLANG_WARN_BOOL_CONVERSION = YES; 193 | CLANG_WARN_CONSTANT_CONVERSION = YES; 194 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 195 | CLANG_WARN_EMPTY_BODY = YES; 196 | CLANG_WARN_ENUM_CONVERSION = YES; 197 | CLANG_WARN_INT_CONVERSION = YES; 198 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 199 | CLANG_WARN_UNREACHABLE_CODE = YES; 200 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 201 | COPY_PHASE_STRIP = NO; 202 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 203 | ENABLE_NS_ASSERTIONS = NO; 204 | ENABLE_STRICT_OBJC_MSGSEND = YES; 205 | GCC_C_LANGUAGE_STANDARD = gnu99; 206 | GCC_NO_COMMON_BLOCKS = YES; 207 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 208 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 209 | GCC_WARN_UNDECLARED_SELECTOR = YES; 210 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 211 | GCC_WARN_UNUSED_FUNCTION = YES; 212 | GCC_WARN_UNUSED_VARIABLE = YES; 213 | MACOSX_DEPLOYMENT_TARGET = 10.10; 214 | MTL_ENABLE_DEBUG_INFO = NO; 215 | SDKROOT = macosx; 216 | }; 217 | name = Release; 218 | }; 219 | 3A513C3B1DA3FDD700B23871 /* Debug */ = { 220 | isa = XCBuildConfiguration; 221 | buildSettings = { 222 | HEADER_SEARCH_PATHS = /usr/local/include; 223 | LIBRARY_SEARCH_PATHS = ( 224 | /usr/local/lib, 225 | /usr/local/Cellar/opencv/2.4.13_3/lib, 226 | ); 227 | OTHER_LDFLAGS = ( 228 | "-lopencv_calib3d", 229 | "-lopencv_contrib", 230 | "-lopencv_core", 231 | "-lopencv_features2d", 232 | "-lopencv_flann", 233 | "-lopencv_gpu", 234 | "-lopencv_highgui", 235 | "-lopencv_imgproc", 236 | "-lopencv_legacy", 237 | "-lopencv_ml", 238 | "-lopencv_nonfree", 239 | "-lopencv_objdetect", 240 | "-lopencv_ocl", 241 | "-lopencv_photo", 242 | "-lopencv_stitching", 243 | "-lopencv_superres", 244 | "-lopencv_ts", 245 | "-lopencv_video", 246 | "-lopencv_videostab", 247 | ); 248 | PRODUCT_NAME = "$(TARGET_NAME)"; 249 | }; 250 | name = Debug; 251 | }; 252 | 3A513C3C1DA3FDD700B23871 /* Release */ = { 253 | isa = XCBuildConfiguration; 254 | buildSettings = { 255 | HEADER_SEARCH_PATHS = /usr/local/include; 256 | LIBRARY_SEARCH_PATHS = ( 257 | /usr/local/lib, 258 | /usr/local/Cellar/opencv/2.4.13_3/lib, 259 | ); 260 | OTHER_LDFLAGS = ( 261 | "-lopencv_calib3d", 262 | "-lopencv_contrib", 263 | "-lopencv_core", 264 | "-lopencv_features2d", 265 | "-lopencv_flann", 266 | "-lopencv_gpu", 267 | "-lopencv_highgui", 268 | "-lopencv_imgproc", 269 | "-lopencv_legacy", 270 | "-lopencv_ml", 271 | "-lopencv_nonfree", 272 | "-lopencv_objdetect", 273 | "-lopencv_ocl", 274 | "-lopencv_photo", 275 | "-lopencv_stitching", 276 | "-lopencv_superres", 277 | "-lopencv_ts", 278 | "-lopencv_video", 279 | "-lopencv_videostab", 280 | ); 281 | PRODUCT_NAME = "$(TARGET_NAME)"; 282 | }; 283 | name = Release; 284 | }; 285 | /* End XCBuildConfiguration section */ 286 | 287 | /* Begin XCConfigurationList section */ 288 | 3A513C2E1DA3FDD700B23871 /* Build configuration list for PBXProject "grabcut" */ = { 289 | isa = XCConfigurationList; 290 | buildConfigurations = ( 291 | 3A513C381DA3FDD700B23871 /* Debug */, 292 | 3A513C391DA3FDD700B23871 /* Release */, 293 | ); 294 | defaultConfigurationIsVisible = 0; 295 | defaultConfigurationName = Release; 296 | }; 297 | 3A513C3A1DA3FDD700B23871 /* Build configuration list for PBXNativeTarget "grabcut" */ = { 298 | isa = XCConfigurationList; 299 | buildConfigurations = ( 300 | 3A513C3B1DA3FDD700B23871 /* Debug */, 301 | 3A513C3C1DA3FDD700B23871 /* Release */, 302 | ); 303 | defaultConfigurationIsVisible = 0; 304 | defaultConfigurationName = Release; 305 | }; 306 | /* End XCConfigurationList section */ 307 | }; 308 | rootObject = 3A513C2B1DA3FDD700B23871 /* Project object */; 309 | } 310 | -------------------------------------------------------------------------------- /grabcut.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /grabcut.xcodeproj/project.xcworkspace/xcuserdata/Harsha.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/grabcut.xcodeproj/project.xcworkspace/xcuserdata/Harsha.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /grabcut.xcodeproj/project.xcworkspace/xcuserdata/ali.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/grabcut.xcodeproj/project.xcworkspace/xcuserdata/ali.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /grabcut.xcodeproj/xcuserdata/Harsha.xcuserdatad/xcschemes/grabcut.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /grabcut.xcodeproj/xcuserdata/Harsha.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | grabcut.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 3A513C321DA3FDD700B23871 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /grabcut.xcodeproj/xcuserdata/ali.xcuserdatad/xcschemes/grabcut.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /grabcut.xcodeproj/xcuserdata/ali.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | grabcut.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 3A513C321DA3FDD700B23871 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /grabcut/grabcut.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * grabcut.cpp 3 | * HandDetectionDemo 4 | * 5 | * Created by Kris Kitani on 3/21/13. 6 | * Copyright 2013 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | //#include "grabcut.hpp" 11 | 12 | -------------------------------------------------------------------------------- /grabcut/grabcut.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * grabcut.h 3 | * HandDetectionDemo 4 | * 5 | * Created by Kris Kitani on 3/21/13. 6 | * Copyright 2013 __MyCompanyName__. All rights reserved. 7 | * 8 | */ 9 | 10 | #include 11 | using namespace std; 12 | using namespace cv; 13 | 14 | static void wevents( int e, int x, int y, int flags, void* ptr ); 15 | 16 | 17 | class GrabCut 18 | { 19 | public: 20 | 21 | GrabCut(); 22 | 23 | void run(Mat img, Mat &msk); 24 | void show(); 25 | Mat getFG(); 26 | Mat getBinMask(); 27 | 28 | void events( int e, int x, int y, int flags); 29 | 30 | 31 | Mat _gcut; 32 | int _mode; 33 | Mat _src; 34 | Mat _bin; 35 | Mat _tmp; 36 | Mat _mask; 37 | Mat _fgd; 38 | Mat _bgd; 39 | Mat _dsp; 40 | 41 | Point _pt; 42 | Point lstart; 43 | Point rstart; 44 | bool ldrag; 45 | bool rdrag; 46 | //int lab; 47 | 48 | string _name; 49 | 50 | 51 | }; 52 | 53 | GrabCut::GrabCut() 54 | { 55 | _mode=GC_FGD; 56 | } 57 | 58 | void GrabCut::run(Mat img, Mat &msk) 59 | { 60 | cout << "run grabcut" << endl; 61 | 62 | _src = img; 63 | _mask = Mat::ones(_src.size(),CV_8UC1)*GC_PR_BGD; 64 | _bin = Mat::zeros(_src.size(),CV_8UC1); 65 | 66 | 67 | cout << "GC_BGD " << GC_BGD <(y, x) == cv::GC_FGD) { 122 | cv::circle(scribbled_src, cv::Point(x, y), 2, fg_color, -1); 123 | } 124 | else if(_gcut.at(y, x) == cv::GC_BGD) { 125 | cv::circle(scribbled_src, cv::Point(x, y), 2, bg_color, -1); 126 | } 127 | else if(_gcut.at(y, x) == cv::GC_PR_BGD) { 128 | cv::Vec3b& pix = scribbled_src.at(y, x); 129 | pix[0] = (uchar)(pix[0] * alpha + bg_color[0] * (1-alpha)); 130 | pix[1] = (uchar)(pix[1] * alpha + bg_color[1] * (1-alpha)); 131 | pix[2] = (uchar)(pix[2] * alpha + bg_color[2] * (1-alpha)); 132 | } 133 | else if(_gcut.at(y, x) == cv::GC_PR_FGD) { 134 | cv::Vec3b& pix = scribbled_src.at(y, x); 135 | pix[0] = (uchar)(pix[0] * alpha + fg_color[0] * (1-alpha)); 136 | pix[1] = (uchar)(pix[1] * alpha + fg_color[1] * (1-alpha)); 137 | pix[2] = (uchar)(pix[2] * alpha + fg_color[2] * (1-alpha)); 138 | } 139 | } 140 | } 141 | 142 | Rect roi; 143 | 144 | Mat scrb; 145 | roi = Rect(_src.cols,0,_src.cols,_src.rows); 146 | scribbled_src.copyTo(_dsp(roi)); 147 | 148 | 149 | Mat fg = getFG(); 150 | roi = Rect(_src.cols,_src.rows,_src.cols,_src.rows); 151 | fg.copyTo(_dsp(roi)); 152 | 153 | Mat msk = getBinMask(); 154 | cvtColor(msk,msk,COLOR_GRAY2BGR); 155 | roi = Rect(0,_src.rows,_src.cols,_src.rows); 156 | msk.copyTo(_dsp(roi)); 157 | 158 | imshow(_name,_dsp); 159 | 160 | 161 | waitKey(1); 162 | } 163 | 164 | 165 | Mat GrabCut::getFG() 166 | { 167 | Mat fg = cv::Mat::zeros(_src.size(), _src.type()); 168 | Mat mask = getBinMask(); 169 | _src.copyTo(fg, mask); 170 | return fg; 171 | } 172 | 173 | Mat GrabCut::getBinMask() 174 | { 175 | 176 | Mat binmask(_gcut.size(), CV_8U); 177 | binmask = _gcut & GC_FGD; 178 | binmask = binmask * 255; 179 | 180 | 181 | Mat tmp; 182 | binmask.copyTo(tmp); 183 | 184 | vector > co; 185 | vector hi; 186 | 187 | binmask *= 0; 188 | findContours(tmp,co,hi,RETR_EXTERNAL,CHAIN_APPROX_NONE); 189 | 190 | for(int i=0;i0) 217 | { 218 | _mask.copyTo(_gcut); 219 | cv::grabCut(_src,_gcut,Rect(), _bgd, _fgd, 1, cv::GC_INIT_WITH_MASK); 220 | show(); 221 | } 222 | break; 223 | case EVENT_MOUSEMOVE: 224 | 225 | if(ldrag) 226 | { 227 | line(_mask,lstart, _pt, Scalar(_mode), 1); 228 | 229 | if(_mode==GC_FGD) line(_dsp,lstart, _pt,CV_RGB(255,0,0), 1); 230 | else if(_mode==GC_BGD) line(_dsp,lstart, _pt,CV_RGB(0,255,0), 1); 231 | 232 | lstart = _pt; 233 | //cout << _pt << endl; 234 | } 235 | break; 236 | default: 237 | break; 238 | }; 239 | 240 | //cout << "eventout" << endl; 241 | } 242 | 243 | static void wevents( int e, int x, int y, int flags, void* ptr ) 244 | { 245 | GrabCut *mptr = (GrabCut*)ptr; 246 | 247 | if(mptr != NULL) mptr->events(e,x,y,flags); 248 | 249 | } -------------------------------------------------------------------------------- /grabcut/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "grabcut.hpp" 6 | 7 | using namespace std; 8 | using namespace cv; 9 | 10 | int main (int argc, char * const argv[]) { 11 | 12 | // assumes a continous video sequence in the form of jpegs 13 | // assumes a certain directory path from root 14 | 15 | string root = "/xxx/dataset/"; //Update this line to the absolute path of dataset location 16 | 17 | string basename = "ASAP"; 18 | string img_prefix = root + "img/" + basename + "/"; 19 | string msk_prefix = root + "mask/"+ basename + "/"; 20 | 21 | stringstream ss; 22 | 23 | ss.str(""); 24 | ss << "mkdir -p " + root + "/mask/" + basename; 25 | system(ss.str().c_str()); 26 | 27 | GrabCut gb; 28 | 29 | vector q(2,100); 30 | q[0]=1; 31 | 32 | int f = 100; // starting frame of the video 33 | while(1) 34 | { 35 | f+=1; // use every 1 frame 36 | 37 | ss.str(""); 38 | ss << img_prefix << setw(8) << setfill('0') << f << ".jpg"; 39 | cout <<"Opening: " << ss.str() << endl; 40 | 41 | Mat img = imread(ss.str()); 42 | if(!img.data) {cout <<"no image data " << ss.str() << endl; continue;} // break 43 | 44 | Mat mask; 45 | gb.run(img,mask); 46 | 47 | ss.str(""); 48 | ss << msk_prefix << setw(8) << setfill('0') << f << ".jpg"; 49 | imwrite(ss.str(),mask,q); 50 | 51 | } 52 | 53 | 54 | 55 | 56 | return 0; 57 | } 58 | -------------------------------------------------------------------------------- /instructions_grabcut_controls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/irllabs/grabcut/d8d9e89a6c00419bc14aba4dac0f61b16bbe96fc/instructions_grabcut_controls.png --------------------------------------------------------------------------------