CONFIGR (CONtour FIgure and GRound)

CONFIGR (CONtour FIgure and GRound) is a model that performs long-range contour completion.
2.2K Downloads
Updated 22 Jul 2009

View License

This software has been realized at the CNS Technology Lab at Boston University - http://techlab.bu.edu. The main author of this software is Chaitanya Sai ( http://techlab.bu.edu/members/sai/ ).

CONFIGR (CONtour FIgure GRound) is a computational model based on principles of biological vision that completes sparse and noisy image figures. Within an integrated vision/recognition system, CONFIGR posits an initial recognition stage which identifies figure pixels from spatially local input information. The resulting, and typically incomplete, figure is fed back to the ?early vision? stage for long-range completion via filling-in. The reconstructed image is then re-presented to the recognition system for global functions such as object recognition. In the CONFIGR algorithm, the smallest independent image unit is the visible pixel, whose size defines a computational spatial scale. Once the pixel size is fixed, the entire algorithm is fully determined, with no additional parameter choices. Multi-scale simulations illustrate the vision/recognition system. Open-source CONFIGR code is available online, but all examples can be derived analytically, and the design principles applied at each step are transparent. The model balances filling-in as figure against complementary filling-in as ground, which blocks spurious figure completions. Lobe computations occur on a subpixel spatial scale. Originally designed to fill-in missing contours in an incomplete image such as a dashed line, the same CONFIGR system connects and segments sparse dots, and unifies occluded objects from pieces locally identified as figure in the initial recognition stage. The model self-scales its completion distances, filling-in across gaps of any length, where unimpeded, while limiting connections among dense image-figure pixel groups that already have intrinsic form. Long-range image completion promises to play an important role in adaptive processors that reconstruct images from highly compressed video and still camera images.

Code Description

MATLAB 7.0 or higher. Usage: I_output = runCONFIGR(I,PixRes) This runs CONFIGR with the following defaults: PixRes: pixel resolution default=1: CONFIGR pixel resolution is the same as that of the input image Advanced Options: I_output = runCONFIGR(I,PixRes,NumIter,ShrinkFact) I: input image PixRes: pixel resolution 1: fine 2: medium 3: coarse The following options provide computational flexibility but are not model parameters. NumIter: number of iterations CONFIGR simulation can be forced to stop early by setting a low number of iterations. ShrinkFact: ratio of desired image size to actual size Sparse images can be resized for faster runtimes. Raw CONFIGR output (ground and figure-filled rectangles, and interpolating diagonals) can be obtained using [I_output, I_output_raw, Idiagonals]=runCONFIGR(I)

More info available at http://techlab.bu.edu/resources/software_view/configr_matlab_and_c_code/

- Contributors
Gail Carpenter
Ben Chandler
Robert Kozma
Praveen K. Pilly
Chaitanya Sai
Doug Sondak
Kadin Tseng

Cite As

Massimiliano Versace (2024). CONFIGR (CONtour FIgure and GRound) (https://www.mathworks.com/matlabcentral/fileexchange/24659-configr-contour-figure-and-ground), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.4.0.0

updated authorship/credits

1.3.0.0

edited beginning and contributors

1.2.0.0

corrected typo on Description

1.1.0.0

Updated authorship and link information

1.0.0.0