This is a port of Dr. Curtis Woodcock's image segmentation code from IPW to C code using GDAL