|
TPCCLIB
|
Storing and processing of 4D image coordinate data. More...
#include "libtpcimgio.h"Go to the source code of this file.
Functions | |
| int | string_to_xyzf (const char *str, IMG_PIXEL *v) |
| int | irdReorder (IMG_RANGE *img_range) |
| int | irdRead (char *irdfile, IMG_RANGE *img_range, char *status) |
| int | irdCheck (IMG_RANGE *r, IMG *img) |
Storing and processing of 4D image coordinate data.
Definition in file ird.c.
Check that image range definition is inside image data. If time frames are zero, then fix those to image frame range.
| r | Pointer to image volume range data. |
| img | Pointer to image data. |
Definition at line 152 of file ird.c.
| int irdRead | ( | char * | irdfile, |
| IMG_RANGE * | img_range, | ||
| char * | status ) |
Read Image Range Definition File.
| irdfile | Image Range Definition File name, which contains 4D image volume corners (x y z f) in IFT format: corner1 = x y z f corner2 = x y z f; If time frames (f) are missing, then frame coordinate is set to 0. |
| img_range | Image volume range |
| status | Pointer to a string (allocated for at least 64 chars) where error message or other execution status will be written; enter NULL, if not needed |
Definition at line 75 of file ird.c.
| int irdReorder | ( | IMG_RANGE * | img_range | ) |
Reorder Image Range Definition.
Function name was previously ifrReorder
| img_range | Image volume range; start and end range are set in correct order |
Definition at line 44 of file ird.c.
Referenced by irdRead().
| int string_to_xyzf | ( | const char * | str, |
| IMG_PIXEL * | v ) |
Read voxel coordinates including time frame from a string representation.
| str | String in format x,y,z,f or x y z f; frame (f) is optional; if f is not specified, then 0 is written in its place. |
| v | Pointer to image pixel struct; obligatory. |
Definition at line 14 of file ird.c.
Referenced by irdRead().