diff options
author | scuri <scuri> | 2009-09-28 20:18:52 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-09-28 20:18:52 +0000 |
commit | d2c116c0adc98b18124b6c3cbf2b839d5719444f (patch) | |
tree | 7aaf21298526da5fa1516d15782dc4c8ed1b6fc6 /include/im_process_ana.h | |
parent | 9f84f624d3a6be89804a55ddea878f4cdaca6e77 (diff) |
Changed: imProcessPrune renamed to imProcessRemoveByArea, and added a new parameter to select inside or outside the interval.
Diffstat (limited to 'include/im_process_ana.h')
-rw-r--r-- | include/im_process_ana.h | 11 |
1 files changed, 6 insertions, 5 deletions
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 |