Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xil_roi_translate(3) — SunOS 5.6

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_subtract_rect(3)

xil_roi_unite(3)

xil_roi_translate(3)

NAME

xil_roi_translate − translate an ROI up and down or left and right

SYNOPSIS

#include <xil/xil.h>

XilRoi xil_roi_translate ( XilRoi roi,

int xoffset,
int yoffset);

DESCRIPTION

This function returns a region of interest (ROI) that is translated ( moved) ( xoffset, yoffset ) from the specified ROI.  The coordinates of the translation 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.  Positive offsets for xoffset, yoffset move the ROI to the right and down. Negative offsets move the ROI left and up. 

ERRORS

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

EXAMPLES

Move all of the regions comprising an ROI +20 in x and -50 in y :

XilRoi roi, translated_roi;
translated_roi = xil_roi_translate (roi, 20, -50);

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_subtract_rect(3), xil_roi_unite(3). 

SunOS 5.6  —  Last change: 16 June 1993

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