From d2c116c0adc98b18124b6c3cbf2b839d5719444f Mon Sep 17 00:00:00 2001 From: scuri Date: Mon, 28 Sep 2009 20:18:52 +0000 Subject: Changed: imProcessPrune renamed to imProcessRemoveByArea, and added a new parameter to select inside or outside the interval. --- include/im_process_ana.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include/im_process_ana.h') diff --git a/include/im_process_ana.h b/include/im_process_ana.h index 2853e02..e7a897a 100644 --- a/include/im_process_ana.h +++ b/include/im_process_ana.h @@ -195,14 +195,15 @@ void imAnalyzeMeasurePerimeter(const imImage* image, float* perim, int region_co * \ingroup analyze */ void imProcessPerimeterLine(const imImage* src_image, imImage* dst_image); -/** Eliminates regions that have size outside the given interval. \n +/** Eliminates regions that have area size outside or inside the given interval. \n * Source and destiny are a binary images. Regions can be 4 connected or 8 connected. \n - * Can be done in-place. end_size can be zero to ignore big objects. + * Can be done in-place. end_size can be zero to indicate no upper limit or an area with width*height size. \n + * When searching inside the region the limits are inclusive (<= size >=), when searching outside the limits are exclusive (> size <). * - * \verbatim im.ProcessPrune(src_image: imImage, dst_image: imImage, connect: number, start_size: number, end_size: number) [in Lua 5] \endverbatim - * \verbatim im.ProcessPruneNew(image: imImage, connect: number, start_size: number, end_size: number) -> new_image: imImage [in Lua 5] \endverbatim + * \verbatim im.ProcessRemoveByArea(src_image: imImage, dst_image: imImage, connect: number, start_size: number, end_size: number, inside: boolean) [in Lua 5] \endverbatim + * \verbatim im.ProcessRemoveByAreaNew(image: imImage, connect: number, start_size: number, end_size: number, inside: boolean) -> new_image: imImage [in Lua 5] \endverbatim * \ingroup analyze */ -void imProcessPrune(const imImage* src_image, imImage* dst_image, int connect, int start_size, int end_size); +void imProcessRemoveByArea(const imImage* src_image, imImage* dst_image, int connect, int start_size, int end_size, int inside); /** Fill holes inside white regions. \n * Source and destiny are a binary images. Regions can be 4 connected or 8 connected. \n -- cgit v1.2.3