|
TPCCLIB
|
Deprecated ECAT ROI functions; may need to be updated before use. More...
#include "libtpcroi.h"Go to the source code of this file.
Functions | |
| void | roiDel (ROI_list *rl, int ind) |
| int | roiRead (const char *fname, ROI_list *rl) |
| int | roiComputeCirc (ROI *roi) |
| int | roiComputeElli (ROI *roi) |
| int | roiFillGaps (int *x, int *y, int nr, int **ffx, int **ffy) |
| int | roiOnOff (ROI *roi, int dimx, int dimy, char **m) |
| void | roiOnOffPrint (int dimx, int dimy, char **m) |
| int | roiSave (const char *fname, ROI_list *rl) |
| int | roiAppend (char *fname, ROI_list *rl, int ind) |
Deprecated ECAT ROI functions; may need to be updated before use.
Definition in file ecat_roi_old.c.
| int roiAppend | ( | char * | fname, |
| ROI_list * | rl, | ||
| int | ind ) |
Append ROIs in given file to given ROI list.
| fname | File name |
| rl | Roilist |
| ind | Index |
Definition at line 554 of file ecat_roi_old.c.
| int roiComputeCirc | ( | ROI * | roi | ) |
Compute circular ROI.
| roi | ROI |
Definition at line 199 of file ecat_roi_old.c.
Referenced by roiRead().
| int roiComputeElli | ( | ROI * | roi | ) |
Compute ellipse ROI.
| roi | ROI |
Definition at line 251 of file ecat_roi_old.c.
Referenced by roiRead().
| void roiDel | ( | ROI_list * | rl, |
| int | ind ) |
If ind=0, all ROIs in list are deleted keeping memory allocated, else only one ROI is deleted (ind=1, first ROI) keeping memory allocated.
Definition at line 13 of file ecat_roi_old.c.
| int roiFillGaps | ( | int * | x, |
| int * | y, | ||
| int | nr, | ||
| int ** | ffx, | ||
| int ** | ffy ) |
Fills the gaps between ROI points; join them with new points.
Allocates memory for new point data in fx and fy.
| x | ROI line x positions |
| y | ROI line y positions |
| nr | Nr of ROI line points |
| ffx | Pointer to new data points |
| ffy | Pointer to new data points |
Definition at line 307 of file ecat_roi_old.c.
Referenced by roiOnOff().
| int roiOnOff | ( | ROI * | roi, |
| int | dimx, | ||
| int | dimy, | ||
| char ** | m ) |
The matrix is filled with 0's (outside of ROI), 1's (on the ROI border), and 2'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 |
| dimy | Image matrix y dimension |
| m | Allocated memory for output matrix[dimx][dimy] |
Definition at line 404 of file ecat_roi_old.c.
| void roiOnOffPrint | ( | int | dimx, |
| int | dimy, | ||
| char ** | m ) |
Print ROI on-off matrix.
| dimx | On-off matrix x dimension. |
| dimy | On-off matrix y dimension. |
| m | Pointer to on-off matrix[dimx][dimy]. |
Definition at line 483 of file ecat_roi_old.c.
| int roiRead | ( | const char * | fname, |
| ROI_list * | rl ) |
Adds ROI file contents (all ROIs) to specified data structure.
| fname | File name |
| rl | ROI list |
Definition at line 48 of file ecat_roi_old.c.
| int roiSave | ( | const char * | fname, |
| ROI_list * | rl ) |
Save ROI list in file.
| fname | File name |
| rl | ROI list |
Definition at line 504 of file ecat_roi_old.c.