// put only the boxes with the label we want into boxes
boxes.push_back(temp.boxes[j]);
}
}
temp.boxes=boxes;
data_with.images.push_back(temp);
}
else
{
data_without.images.push_back(temp);
}
}
@ -760,9 +745,7 @@ int main(int argc, char** argv)
parser.add_option("shuffle","Randomly shuffle the order of the images listed in file <arg>.");
parser.add_option("seed","When using --shuffle, set the random seed to the string <arg>.",1);
parser.add_option("split","Split the contents of an XML file into two separate files. One containing the "
"images with objects labeled <arg> and another file with all the other images. Additionally, the file "
"containing the <arg> labeled objects will not contain any other labels other than <arg>. "
"That is, the images in the first file are stripped of all labels other than the <arg> labels.",1);
"images with objects labeled <arg> and another file with all the other images. ",1);
parser.add_option("add","Add the image metadata from <arg1> into <arg2>. If any of the image "
"tags are in both files then the ones in <arg2> are deleted and replaced with the "
"image tags from <arg1>. The results are saved into merged.xml and neither <arg1> or "
@ -774,6 +757,8 @@ int main(int argc, char** argv)
parser.add_option("cluster","Cluster all the objects in an XML file into <arg> different clusters and save "
"the results as cluster_###.xml and cluster_###.jpg files.",1);
parser.add_option("ignore","Mark boxes labeled as <arg> as ignored. The resulting XML file is output as a separate file and the original is not modified.",1);
parser.add_option("rmlabel","Remove all boxes labeled <arg> and save the results to a new XML file.",1);
parser.add_option("rm-if-overlaps","Remove all boxes labeled <arg> if they overlap any box not labeled <arg> and save the results to a new XML file.",1);
parser.set_group_name("Cropping sub images");
parser.add_option("resample","Crop out images that are centered on each object in the dataset. "
@ -790,7 +775,7 @@ int main(int argc, char** argv)