Main Page | Data Structures | Directories | File List | Data Fields | Globals

tclSadie_ROI.c File Reference

Manipulate region of interest (ROI) data structures associated with images. More...

#include <sadie.h>
#include "Sadie_Index.h"
#include "tclSadie_ROI.h"

Go to the source code of this file.

Functions

void CREATE_ROI (IMAGE *in, const char *name, const char *dkey, uint32_t xbgn, uint32_t ybgn, uint32_t xend, uint32_t yend, int matrix, uint32_t inc, uint32_t nlev)
 Create a data structure summarizing a rectangular ROI within an image.

Variables

sad_doclistp_t global_doclist
 Global hash table holding the ROIs for the lifetime of an image.


Detailed Description

Manipulate region of interest (ROI) data structures associated with images.

The SADIE library does not provide a mechanism for associating regions of interest with particular images (although some previous versions used a modified image structure for this purpose). Here we provide not only an interface to the library's function for generating region of interest data (ROISTATS), but also associate them with the image from which they were derived, using a global hash table to record the association for the lifetime of the image, or the the duration of a particular tclSadie run (whichever is the shorter).

Author:
University of Arizona Digital Image Analysis Lab
Date:
1999, 2004
Version:
Id
tclSadie_ROI.c,v 2.3 2005/03/22 21:53:21 mmunro Exp

Definition in file tclSadie_ROI.c.


Function Documentation

void CREATE_ROI IMAGE *  in,
const char *  name,
const char *  dkey,
uint32_t  xbgn,
uint32_t  ybgn,
uint32_t  xend,
uint32_t  yend,
int  matrix,
uint32_t  inc,
uint32_t  nlev
 

Create a data structure summarizing a rectangular ROI within an image.

Note that this is currently inefficient and inelegant: it operates on a partial copy of the original image rather than simply examining the original pixel values. The sadie.h file defines a region of interest data structure into which we place the various statistics, using the ROISTATS operation from the SADIE library. All the regions defined within a particular image are strung together in a single list, and the global hash table maintains the association between this and the image.

Parameters:
[in] in points to the image containing the region.
[in] name a name to give the region.
[in] dkey the ID of the image containing the region.
[in] xbgn the region's initial horizontal coordinate.
[in] ybgn the region's initial vertical coordinate.
[in] xend the region's final horizontal coordinate.
[in] yend the region's final vertical coordinate.
[in] matrix compute covariances and correlations (1), or not (0).
[in] inc the pixel subsample increment.
[in] nlev the number of histogram bins (or zero to suppress it).

Definition at line 107 of file tclSadie_ROI.c.

References sad_get_doc_property(), and sad_put_doc_property().

Referenced by Sadie_Plot_CreateROICmd().


Generated on Fri Jul 8 14:55:03 2005 for tclSadie by  doxygen 1.4.2