
Below are the format descriptions for the files in the data folder (please let me know if you have any question regarding the file format).
In the same folder, you will also find another file "code.cpp" containing the soure code for reading these types of files.



-------------------- point cloud segmentation files (.lab) -------------------------
num_points: num
x  y  z  nx  ny  nz r g b a  // points starting from this line. each point has a 3D position, a normal and a color
...

num_groups: num              // number of segments

group_label: label           // the label of first group, a string
group_color: r g b a         // color of this group
group_num_points: num        // number of point in this segment
idx ...                      // the indices of the points

group_label: label           // the label of first group, a string
group_color: r g b a         // color of this group
group_num_points: num        // number of point in this segment
idx ...                      // the indices of the points

...




-------------------- image segmentation files (.seg) -------------------------

num_patches: num

patch_index: index  	// index for the 0th patch
patch_label: label  	// label
patch_color: r g b 	 / int int int
patch_size:  num    	// number of pixels in this patch (include boundary pixels)
boundary_size: size 	// number of boundary pixels in this patch
v v v ...	    	// indices of the pixels (int type) belonging to this patch. v = row * image_width + col
v v v ...           	// boundary pixels.

patch_index: index  	// index for the 1st patch
patch_label: label  	// label
patch_color: r g b  	// int int int
patch_size:  num    	// number of pixels in this patch (include boundary pixels)
boundary_size: size 	// number of boundary pixels in this patch
v v v ...	    	// indices of the pixels (int type) belonging to this patch. v = row * image_width + col
v v v ...           	// boundary pixels.

...

