|
TPCCLIB
|
ECAT 2D ROI functions. More...
#include "libtpcroi.h"Go to the source code of this file.
Functions | |
| void | roi_empty (ROI_list *rl) |
| void | roi_init (ROI_list *rl) |
| void | roi_delete_n (ROI_list *rl, int ind) |
| void | roi_delete (ROI_list *rl, ROI *roi) |
| int | roi_read (const char *fname, ROI_list *rl) |
| int | roi_compute_rect (ROI *roi) |
| int | roiComputeRect (ROI *roi) |
| int | roi_compute_circle (ROI *roi) |
| int | roi_compute_ellipse (ROI *roi) |
| void | roi_print (ROI *roi) |
| int | roi_onoff (ROI *roi, int dimx, int dimy, char **m) |
| int | roi_save (const char *fname, ROI_list *rl) |
| int | roi_append (FILE *fp, ROI *roi) |
| int | roi_append_n (FILE *fp, ROI_list *rl, int ind) |
| int | jsqrt (int n) |
| int | roi_mplane (int matnum) |
| int | roi_mframe (int matnum) |
Variables | |
| char | roierrmsg [128] |
ECAT 2D ROI functions.
Definition in file ecat_roi.c.
| #define SUPPORT_LEGACY |
Definition at line 13 of file ecat_roi.c.
| int jsqrt | ( | int | n | ) |
Calculate integer square root.
| n | Integer |
Definition at line 617 of file ecat_roi.c.
Referenced by roiComputeElli().
| int roi_append | ( | FILE * | fp, |
| ROI * | roi ) |
Append ROIs into given file.
Definition at line 564 of file ecat_roi.c.
Referenced by roi_append_n(), and roi_save().
| int roi_append_n | ( | FILE * | fp, |
| ROI_list * | rl, | ||
| int | ind ) |
Append given ROI into file.
Definition at line 595 of file ecat_roi.c.
| int roi_compute_circle | ( | ROI * | roi | ) |
| int roi_compute_ellipse | ( | ROI * | roi | ) |
Compute ellipse ROI.
| roi | ROI |
Definition at line 311 of file ecat_roi.c.
| int roi_compute_rect | ( | ROI * | roi | ) |
Compute rectangular ROI.
| roi | ROI |
Definition at line 244 of file ecat_roi.c.
| void roi_delete_n | ( | ROI_list * | rl, |
| int | ind ) |
| void roi_empty | ( | ROI_list * | rl | ) |
| void roi_init | ( | ROI_list * | rl | ) |
Before any use, this should be called, but not later.
| rl | ROI list |
Definition at line 49 of file ecat_roi.c.
| int roi_mframe | ( | int | matnum | ) |
| matnum | Matnum |
Definition at line 649 of file ecat_roi.c.
Referenced by roi_print().
| int roi_mplane | ( | int | matnum | ) |
| matnum | Matnum |
Definition at line 636 of file ecat_roi.c.
Referenced by roi_print().
| int roi_onoff | ( | ROI * | roi, |
| int | dimx, | ||
| int | dimy, | ||
| char ** | m ) |
The matrix is filled with 0's (outside of ROI) and 1's (inside the ROI border).
If ROI extends outside image borders, those points are ignored. Matrix coordinates are up-to-bottom and left-to-right.
| roi | Definitions for one region-of-interest |
| dimx | Image matrix x dimension when ROI was drawn (1, 2, 3, or 4 times magnified). |
| dimy | Image matrix y dimension when ROI was drawn. |
| m | Allocated memory for output matrix[dimx][dimy] |
Definition at line 451 of file ecat_roi.c.
| void roi_print | ( | ROI * | roi | ) |
Prints the contents of (individual) roi data structure.
| roi | ROI |
Definition at line 333 of file ecat_roi.c.
| int roi_read | ( | const char * | fname, |
| ROI_list * | rl ) |
Adds ROI file contents (all ROIs) to specified data structure.
| fname | Filename |
| rl | ROI list |
Definition at line 114 of file ecat_roi.c.
| int roi_save | ( | const char * | fname, |
| ROI_list * | rl ) |
Save ROI list in file.
| fname | File name |
| rl | ROI list |
Definition at line 530 of file ecat_roi.c.
| int roiComputeRect | ( | ROI * | roi | ) |
| char roierrmsg[128] |
The ROI library error message
Definition at line 11 of file ecat_roi.c.
Referenced by roi_append(), roi_onoff(), roi_read(), roi_save(), roiAppend(), roiOnOff(), roiRead(), and roiSave().