Functions | |
| cpl_error_code | irplib_image_filter_background_line (cpl_image *self, const cpl_image *other, int hsize, cpl_boolean vertical) |
| Filter the background of an image with horizontal or vertical lines. | |
#include <irplib_filter.h>
| cpl_error_code irplib_image_filter_background_line | ( | cpl_image * | self, | |
| const cpl_image * | other, | |||
| int | hsize, | |||
| cpl_boolean | vertical | |||
| ) |
Filter the background of an image with horizontal or vertical lines.
| self | Filtered image | |
| other | Image to filter, use NULL for in-place filtering | |
| hsize | Filtering half-size, total size is 1 + 2 * hsize | |
| vertical | True iff the lines are vertical |
If the background varies strongly along the line, it can be detected and removed with a unit width 1+2*hsize median filter, where hsize is an upper bound on the line width.
Definition at line 80 of file irplib_filter.c.
Referenced by irplib_slitpos_analysis().
1.6.1