Code

Here's the code we used for image creation, management, segementing, and analysis. The directory is accesible here. Many of the files require others. Here is a zipped file containing all of the files. In order to get some of the required files, download StereoMatcher from the Microsoft Research Download Page. To understand the relation between the various solving methods, look at this code history

RefCntMem.h

RefCntMem.cpp
A class to manage reference counted dynamically allocated memory. It can be used to achieve a similar kind of functionality as garbage collected languages.
A class for controlling colors. Can handle transparency and maps each color to a unique integer.
Image.h
Image.cpp
A template class for handling 2D arrays of information with an arbitrary number of ordered pieces of data.
Various helper functions
-
Throws error messages back to calling programs
ImageIO.h
ImageIO.cpp
Reads and writes from the image class to various file formats.
Convert.h
Convert.cpp
Converts between various types of images and a similar utilities.
Colored, moving shapes for synthetic scenes. Creates rectangles, triangles, and blobs.
Creates synthetic scenes from the Polygon class
-
 Rename Main.cpp. Creates, outputs and analyzes synthetic scenes. Used with Deductor, Approximator, Approx2D, and Rasterizor.
-
  Rename Main.cpp. Inputs photographic images. Data sets available here. Works with PhotoAnalysis and Rasterizor2D
 Interval approach for 1D Mondrian scenes. Requires integer values and convex regions.
 Rasterized approach for 1D Mondrian scenes. Requires integer values and does better with convex regions.
Interval approach for 1D Mondrian scenes. Requires convex regions. 
Interval approach for 2D Mondrian scenes. Requires convex regions. 
Interval approach for photographic Mondrian scenes. Requires convex regions.
Interval approach for 1D Mondrian scenes. Rounds to integer values and does better with convex regions.
The segenting code. Segments several frames at once and will segment across frames.

 



|
|