Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xil_roi_subtract_rect(3) — Solaris 2.4 x86 SDK

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

xil_get_roi(3)

xil_set_roi(3)

xil_roi_add_image(3)

xil_roi_add_rect(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_translate(3)

xil_roi_unite(3)

xil_roi_subtract_rect(3)

NAME

xil_roi_subtract_rect − subtract a rectangle from an ROI

SYNOPSIS

#include <xil/xil.h>

void xil_roi_subtract_rect ( XilRoi roi,

long x,
long y,
long width,
long height);

DESCRIPTION

This function subtracts the specified rectangle from 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

Subtract two rectangles from 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;
long  xstart, ystart, width, height;
xstart=0; ystart=0; width=35; height=95;
xil_roi_subtract_rect (roi, xstart, ystart, width, height);
xstart=10; ystart=20; width=100; height=50;
xil_roi_subtract_rect (roi, xstart, ystart, width, height);

SEE ALSO

xil_get_roi(3), xil_set_roi(3), xil_roi_add_image(3), xil_roi_add_rect(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_translate(3), xil_roi_unite(3). 

SunOS   —  Last change: 16 June 1993

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