You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Improvements to git pre-commit hook.
- Split crop function into two overloaded versions, one receives a vector of nodes and the other receives an xpath string.
- The crop function base_xpath parameter can now be any expression, even relative to Coords node.
<span class="sd"> Crops images using its Coords polygon, regions outside the polygon are set to transparent.</span>
10507
+
10508
+
<span class="sd"> Arguments:</span>
10509
+
<span class="sd"> xpath (const char *): Selector for Coord nodes to crop.</span>
10510
+
<span class="sd"> margin (cv::Point2f *): Margins, if >1.0 it is considered pixels, otherwise percentage of maximum between crop width and height.</span>
10511
+
<span class="sd"> opaque_coords (bool): Whether to include an alpha channel with the polygon interior in opaque.</span>
10512
+
<span class="sd"> transp_xpath (const char *): Selector for semi-transparent elements.</span>
10513
+
<span class="sd"> base_xpath (const char *): Expression to construct sample name, overriding the default IMGBASE.ELEMID.</span>
10514
+
10515
+
<span class="sd"> Returns:</span>
10516
+
<span class="sd"> std::vector< NamedImage >: An std::vector containing NamedImage objects of the cropped images.</span>
<span class="sd"> Crops images using its Coords polygon, regions outside the polygon are set to transparent.</span>
10501
10523
10502
10524
<span class="sd"> Arguments:</span>
10503
-
<span class="sd"> xpath (const char *): Selector for polygons to crop.</span>
10504
-
<span class="sd"> margin (cv::Point2f *): Margins, if >1.0 pixels, otherwise percentage of maximum of crop width and height.</span>
10525
+
<span class="sd"> elems_coords (std::vector< xmlNodePt >): Vector of Coord nodes to crop.</span>
10526
+
<span class="sd"> margin (cv::Point2f *): Margins, if >1.0 it is considered pixels, otherwise percentage of maximum between crop width and height.</span>
10505
10527
<span class="sd"> opaque_coords (bool): Whether to include an alpha channel with the polygon interior in opaque.</span>
10506
10528
<span class="sd"> transp_xpath (const char *): Selector for semi-transparent elements.</span>
10507
-
<span class="sd"> base_xpath (const char *): Selector for base node to use to construct the sample name.</span>
10529
+
<span class="sd"> base_xpath (const char *): Expression to construct sample name, overriding the default IMGBASE.ELEMID.</span>
10508
10530
10509
10531
<span class="sd"> Returns:</span>
10510
10532
<span class="sd"> std::vector< NamedImage >: An std::vector containing NamedImage objects of the cropped images.</span>
0 commit comments