The main program for the segmentation algorithms here is segDemoAnalysis.m It has a "User changeable parameters." section where all of the user changeable parameters are located. The "Initialization" subsection is part of Leo Grady's original code and his documentation should be consulted for questions about it. The documentation from his original main program is at the beginning of this main program. "Toler" is a global variable that is used to set the tolerance option for "eigs" in the Dpartitiongraph.m subroutine. "Connect" is a local variable that sets the connectivity flag. It is used in the call to "Dimgsegment". Leo Grady entered the flag value directly into the call to Dimgsegment rather than using a flag. Still, I refer questions about its use to his documentation. "Calc_LE" is a global variable that is used in Dpartitiongraph. Calculating large eigenvalues increases calculation time and is unnecessary unless condition numbers are being calculated. Setting this variable allows the calculation of large eigenvalues to be by-passed without modifying Dpartitiongraph.m. The rest of the "user changeable parameters" are local variables. "runSegment" allows the segmentation algorithm to be by-passed. This allows stored output to be analyzed without the delay due to the computation time of the segmentation process. In this mode, "InputPath" and "Display" are the only other parameters that need to be set. All of the others do not effect output. "Photo" contains the path and name of the photo to be segmented. All of the accompanying commas and quotes are necessary. "OutputPath" and "ReturnPath" must be a matched set. Repeatedly, the algorithm changes directory to OutputPath to save data and then changes to ReturnPath to continue calculatiions. "InputPath" is the path for already saved output that is to be displayed without running the segmentation algorithm. The display subroutines automatically read a file named "DataMatrix.mat". No filename should appear in this variable. "SmallDenom" and "LargeDenom" determine the range of resizings of the photo being processed. For the matrix of pixels of the photo, these denominators are used in the call to the "imresize" function to resize the photo. A larger denominator results in a smaller matrix of pixels being output by imresize. "Display" is used only for the routines for displaying results. The graphs are always displayed. Which if any pictures that are to be displayed is given by the assignment given to Display.