@@ -0,0 +1,531 @@
+import json%0Aimport itertools as it%0A%0Aall_sizes = %5B0.7, 1.0, 1.6, 3.5, 5.0%5D%0Aall_types = %5B'Color', 'Texture', 'Edge', 'Orientation'%5D%0A%0Afull_feature_set = list(it.product(all_types, all_sizes))%0Adefault_feature_set = list(it.product(all_types%5B:-1%5D, all_sizes%5B1:-1%5D))%0A%0Adef write_segmentation_pipeline_json(jsonfn, ilfn, ilbfn, outdir='.'):%0A    d = %7B%7D%0A    d%5B'images'%5D = %5B%7B'name': ilbfn%7D%5D%0A    d%5B'session'%5D = ilfn%0A    d%5B'output_dir'%5D = outdir%0A    d%5B'features'%5D = default_feature_set%0A    with open(jsonfn, 'w') as f:%0A        json.write(d, f)%0A

Add file for general misc utilities