hough — Hough transform
#include <libprocess/gwyprocess.h>
void gwy_data_field_hough_line (GwyDataField *dfield
,GwyDataField *x_gradient
,GwyDataField *y_gradient
,GwyDataField *result
,gint hwidth
,gboolean overlapping
);
void gwy_data_field_hough_circle (GwyDataField *dfield
,GwyDataField *x_gradient
,GwyDataField *y_gradient
,GwyDataField *result
,gdouble radius
);
void gwy_data_field_hough_line_strenghten (GwyDataField *dfield
,GwyDataField *x_gradient
,GwyDataField *y_gradient
,gint hwidth
,gdouble threshold
);
void gwy_data_field_hough_circle_strenghten (GwyDataField *dfield
,GwyDataField *x_gradient
,GwyDataField *y_gradient
,gdouble radius
,gdouble threshold
);
gint gwy_data_field_get_local_maxima_list (GwyDataField *dfield
,gdouble *xdata
,gdouble *ydata
,gdouble *zdata
,gint ndata
,gint skip
,gdouble threshold
,gboolean subpixel
);
Locates local maxima in a data field.
At most ndata
maxima are located (with the largest values).
dfield |
A two-dimensional data field. |
|
xdata |
Array of |
|
ydata |
Array of |
|
zdata |
Array of |
|
ndata |
Number of items in |
|
skip |
Minimum pixel distance between maxima. |
|
threshold |
Minimum value to be considered a maximum. |
|
subpixel |
|
The actual number of maxima found.
gint gwy_data_field_get_local_minima_list (GwyDataField *dfield
,gdouble *xdata
,gdouble *ydata
,gdouble *zdata
,gint ndata
,gint skip
,gdouble threshold
,gboolean subpixel
);
Locates local minima in a data field.
At most ndata
minima are located (with the smallest values).
dfield |
A two-dimensional data field. |
|
xdata |
Array of |
|
ydata |
Array of |
|
zdata |
Array of |
|
ndata |
Number of items in |
|
skip |
Minimum pixel distance between minima. |
|
threshold |
Maximum value to be considered a minimum. |
|
subpixel |
|
The actual number of minima found.
Since: 2.59
void gwy_data_field_hough_polar_line_to_datafield (GwyDataField *dfield
,gdouble rho
,gdouble theta
,gint *px1
,gint *px2
,gint *py1
,gint *py2
);
void gwy_data_field_hough_datafield_line_to_polar (gint px1
,gint px2
,gint py1
,gint py2
,gdouble *rho
,gdouble *theta
);