#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>#include <ctype.h>#include <time.h>#include "include/ecat63.h"#include "include/petc99.h"#include "include/roi.h"Defines | |
| #define | SUPPORT_LEGACY |
Functions | |
| const char * | libpet_roi_version (void) |
| void | roi_empty (ROI_list *rl) |
| void | roiInit (ROI_list *rl) |
| void | roi_delete_n (ROI_list *rl, int ind) |
| void | roi_delete (ROI_list *rl, ROI *roi) |
| void | roiDel (ROI_list *rl, int ind) |
| int | roi_read (const char *fname, ROI_list *rl) |
| int | roiRead (const char *fname, ROI_list *rl) |
| int | roi_compute_rect (ROI *roi) |
| int | roiComputeRect (ROI *roi) |
| int | roi_compute_circle (ROI *roi) |
| int | roiComputeCirc (ROI *roi) |
| int | roi_compute_ellipse (ROI *roi) |
| int | roiComputeElli (ROI *roi) |
| void | roi_print (ROI *roi) |
| int | roiFillGaps (int *x, int *y, int nr, int **ffx, int **ffy) |
| int | roiOnOff (ROI *roi, int dimx, int dimy, float zoom, char **m) |
| static void | fill_traceroi (char **m, int dimx, int dimy, float f, int pos_x, int pos_y, int *roix, int *roiy, int point_nr) |
| int | roi_onoff (ROI *roi, int dimx, int dimy, float zoom, char **m) |
| int | roi_save (char *fname, ROI_list *rl) |
| int | roiSave (char *fname, ROI_list *rl) |
| int | roi_append (FILE *fp, ROI *roi) |
| int | roi_append_n (FILE *fp, ROI_list *rl, int ind) |
| int | roiAppend (char *fname, ROI_list *rl, int ind) |
| int | jsqrt (int n) |
| int | roi_mplane (int matnum) |
| int | roi_mframe (int matnum) |
Variables | |
| char | roierrmsg [128] |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Deletes ROI from roilist |
|
||||||||||||
|
Deletes the index:th ROI |
|
|
Allocated memory is freed, all data is cleared. |
|
|
Returns the frame number of specified matrix |
|
|
Returns the plane number of specified matrix |
|
||||||||||||||||||||||||
|
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.
|
|
|
Prints the contents of (individual) roi data structure. |
|
||||||||||||
|
Adds ROI file contents (all ROIs) to specified data structure.
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
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. |
|
||||||||||||||||||||||||
|
Fills the gaps between ROI points; join them with new points. Allocates memory for new point data in fx and fy.
|
|
|
Before any use, this should be called, but not later. Note. Rename to roi_init() when the old functions are removed |
|
||||||||||||||||||||||||
|
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.
|
|
||||||||||||
|
Adds ROI file contents (all ROIs) to specified data structure.
|
|
||||||||||||
|
|
|
|
The ROI library error message |
1.4.1