22 Apr
2013
22 Apr
'13
9:04 a.m.
On Mon, Apr 22, 2013 at 7:22 AM, Chintak Sheth <chintaksheth@gmail.com> wrote:
I was also thinking about having just the current convex_hull_image() with an additional parameter, method. When method='union', i get the convex hull of the entire image, and if method='object', i get the convex hull of individual objects. Though this approach of defining an another function and giving an additional option of returning convex hull of individual segmented objects, seemed interesting. Also helps keep the code clean.
In general, we prefer to use keywords as parameters that tweak the algorithm (not to switch out an entirely different algorithm). In this case, I think the preference will be for separate functions. Thanks Stéfan