Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

xil_sel_create(3)

xil_sel_get_width(3)

xil_sel_get_height(3)

xil_sel_get_key_x(3)

xil_sel_get_key_y(3)

xil_sel_get_values(3)

NAME

xil_sel_get_values - get the values stored internally for a structuring element. 

SYNOPSIS

#include <xil/xil.h>

void xil_sel_get_values(XilSel sel,

unsigned int ∗data);

DESCRIPTION

xil_sel_get_values () returns the internal values stored in sel. The user must allocate the array of unsigned int data to hold the values of the structruing element object. The size of the data array will be the width of the XilSel object ∗ height of the XilSel object. These values can be retrieved by calling xil_sel_get_width (3) and xil_sel_get_height (3). 

ERRORS

For a complete list of XIL error messages by number, consult Appendix B of the XIL Programmer’s Guide. 

EXAMPLES

Get the values of an structuring element object:

XilSel sel;
unsigned int∗ data;
unsigned int width;
unsigned int height;
 width = xil_sel_get_width(sel);
height = xil_sel_get_height(sel);
 data = malloc(width∗height);
if(data == NULL)
 /∗ cleanup and exit ∗/
 }
xil_sel_get_values(sel, data);

NOTES

SEE ALSO

xil_sel_create(3), xil_sel_get_width(3), xil_sel_get_height(3), xil_sel_get_key_x(3), xil_sel_get_key_y(3). 

SunOS 5.6  —  Last change: 10 February 1997

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026