xil_roi_add_rect(3)
NAME
xil_roi_add_rect − add a rectangle to an ROI
SYNOPSIS
#include <xil/xil.h>
void xil_roi_add_rect ( XilRoi roi,
long x,
long y,
long width,
long height);
DESCRIPTION
This function adds the specified rectangle to the specified region of interest (ROI).
The coordinates of the rectangle are with respect to the storage of the image. That is, an ROI coordinate of (0.0, 0.0) always refers to the upper left pixel in an image, regardless of the image’s origin.
ERRORS
For a complete list of XIL error messages by number, consult Appendix B of the XIL Programmer’s Guide.
EXAMPLES
Add two rectangles to an ROI object, one beginning at (0,0) and ending at (34,94), the other beginning at (10,20) and ending at (109,69):
XilRoi roi = xil_roi_create(state);
long xstart, ystart, width, height;
xstart=0; ystart=0; width=35; height=95;
xil_roi_add_rect (roi, xstart, ystart, width, height);
xstart=10; ystart=20; width=100; height=50;
xil_roi_add_rect (roi, xstart, ystart, width, height);
SEE ALSO
xil_get_roi(3), xil_set_roi(3), xil_roi_add_image(3), xil_roi_add_region(3), xil_roi_create(3), xil_roi_create_copy(3), xil_roi_destroy(3), xil_roi_get_as_image(3), xil_roi_get_as_region(3), xil_roi_intersect(3), xil_roi_subtract_rect(3), xil_roi_translate(3), xil_roi_unite(3).
SunOS 5.6 — Last change: 16 June 1993