SoC 2008 Masking in GUI
The objective of this project is to provide the user with an easy to use interface for quickly creating blending masks. After the images are aligned and shown in the preview window, users will have the option of creating blending masks. Currently the goal is to provide option for mask creation in the preview window. Since it already shows the aligned images, it would be easier for users to create appropriate masks from there.
Implementation will be done in two phases. In the first phase, the basic framework will be implemented. Users will be able to mark regions as either foreground or background and specify the contribution of each segment. Based on the marked region a polygonal outline of the foreground object will be created. Since the outline may not always be accurate (eg. in the case of low contrast edge), a polygon editing option will be provided (the idea is from ). When the user chooses to create panorama the masks are generated as output and provided to enblend.The editing features that are going to be available in this phase are -
- Option for zooming in/out
- Set brush stroke size
- Polygon editing mode for fine-tuning boundary regions
The second phase will focus on 3D segmentation. For instance if an object is moving in front of the camera and we want to exclude that object from the final scene then the user has to mark that object in every image. The second phase will make this simpler by extending the segmentation into 3D.
1. Before Start of Coding Phase:
- Determine input data type, format and how the user will interact
- Construct a preliminary design of the software
- Outline of how the algorithm will work
- Finalize the scope of the project
- Start porting the existing implementation of image segmentation to use wxWidget and VIGRA
2. Coding Phase:
2.1 Before Mid Term Evaluation
- Stand-alone application for testing the basic framework
Implement a basic framework that can –
- Take an image stack of a particular format.
- Allow users to mark regions
- Incorporate algorithm to learn the color model from the user defined area
- Start implementing 2D multi-label image segmentation (this may not be necessary)
2.2 After Mid Term Evaluation
- Fix issues with first phase(bugs, usability, etc.)
- Perform image segmentation on the stack of images (3D segmentation problem where the user will only need to roughly mark the region on a small subset of the images). At the end of this stage the segmentation algorithm should be able to correctly identify similar region in successive images.
- Implement custom max flow/min cut algorithm
The final deliverable will be –
- An extensible framework that works with a subset of the problem.
- An extensible interaction system that supports the primary forms of interaction.
- A Graph-cut library that can be used for implementing other graph-cut based techniques/solving different problems (eg. HDR Deghosting by specifying desired image to use for certain region , constraining control points by marking regions where control points should not be generated, etc).
[test dataset contributed by the community]
Glossary of Terms
- Graph Cut: Graph cut is an optimization technique. Problems in computer vision/image processing such as image restoration, segmentation, etc. are posed as an optimization problem. In the case of Graph cut optimization, these optimization problems are represented as a min-cut problem which is solved using max-flow/min-cut algorithm. For some problems like binary segmentation (ie. segmenting as foreground and background) graph cut provides a global optimal solution. For others (eg. multi-label segmentation) it provides an approximate solution.
- Image Segmentation: Image segmentation can be considered as a labeling problem where different regions of an image is label differently. For instance, in the case of binary segmentation the foreground and background objects can be labeled as foreground and background respectively.
- Multi-label Image Segmentation: In this kind of segmentation problem multiple labels are assigned. For instance different regions of an image can be labeled based on the content of that region eg. people, trees, sky, water, etc.
 Yury Boykov, Marie-Pierre Jolly, "Interactive graph cuts for optimal boundary & region segmentation of objects in N-D images," Proc. Eighth IEEE ICCV, vol.1, no., pp.105-112 vol.1, 2001. webpage
 Aseem Agarwala, Mira Dontcheva, Maneesh Agrawala, Steven Drucker, Alex Colburn, Brian Curless, David Salesin, Michael Cohen, "Interactive Digital Photomontage," ACM Transactions on Graphics (Proceedings of SIGGRAPH), 2004. webpage