@@ -633,6 +634,9 @@ int resample_dataset(const command_line_parser& parser)
else
box.ignore=true;
if(box.rect.area()<min_object_size)
box.ignore=true;
box.rect=tform(box.rect);
for(auto&&p:box.parts)
p.second=tform.get_tform()(p.second);
...
...
@@ -770,6 +774,7 @@ int main(int argc, char** argv)
"the results as cluster_###.xml and cluster_###.jpg files.",1);
parser.add_option("resample","Crop out images that are centered on each object in the dataset. Make the "
"crops so that the objects have <arg> pixels in them. The output is a new XML dataset.",1);
parser.add_option("min-object-size","When doing --resample, skip objects that have fewer than <arg> pixels in them (default 1).",1);
parser.add_option("extract-chips","Crops out images with tight bounding boxes around each object. Also crops out "
"many background chips. All these image chips are serialized into one big data file. The chips will contain <arg> pixels each.",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);
...
...
@@ -777,11 +782,12 @@ int main(int argc, char** argv)