xil_sel_get_height(3)
NAME
xil_sel_get_height, xil_sel_get_width, xil_sel_get_key_x, xil_sel_get_key_y − read the values of structuring element attributes
SYNOPSIS
#include <xil/xil.h>
unsigned int xil_sel_get_height ( XilSel sel);
unsigned int xil_sel_get_width ( XilSel sel);
unsigned int xil_sel_get_key_x ( XilSel sel);
unsigned int xil_sel_get_key_y ( XilSel sel);
DESCRIPTION
These routines read the values of structuring element (SEL) objects used in erosion and dilation imaging operations. Key values specify the key pixel position - a position relative to the upper left corner of the SEL. The key pixel aligns with the output pixel and constrains which input pixels are used to generate the output.
xil_sel_get_height () gets the height of the specified SEL.
xil_sel_get_width () gets the width of the specified SEL.
xil_sel_get_key_x () gets the x coordinate of the key value of the specified SEL.
xil_sel_get_key_y () gets the y coordinate of the key value of the specified SEL.
ERRORS
For a complete list of XIL error messages by number, consult Appendix B of the XIL Programmer’s Guide.
EXAMPLES
Get the coordinates of a SEL’s key value:
XilSel sel;
unsigned int key_x, key_y;
key_x = xil_sel_get_key_x (sel);
key_y = xil_sel_get_key_y (sel);
SEE ALSO
xil_erode(3), xil_dilate(3), xil_sel_create(3), xil_sel_create_copy(3), xil_sel_destroy(3).
SunOS 5.6 — Last change: 16 June 1993