|
TPCCLIB
|
Comparison of IMG structure data. More...
Go to the source code of this file.
Functions | |
| int | imgCompareMatrixSize (IMG *d1, IMG *d2) |
| int | imgCompareUnit (IMG *d1, IMG *d2, TPCSTATUS *status) |
| int | imgCompareConc (IMG *d1, IMG *d2, const float test_abs, const float test_rel, TPCSTATUS *status) |
| int | imgCompareTimes (IMG *d1, IMG *d2, const float test_abs, const float test_rel, TPCSTATUS *status) |
| int imgCompareConc | ( | IMG * | d1, |
| IMG * | d2, | ||
| const float | test_abs, | ||
| const float | test_rel, | ||
| TPCSTATUS * | status ) |
Check whether IMG pixel concentrations are the same. Note that units are ignored here.
If either absolute or relative difference is below the limit, the test is reported as passed.
| d1 | Pointer to IMG structure. |
| d2 | Pointer to IMG structure. |
| test_abs | Limit for accepted absolute difference; obligatory. |
| test_rel | Optional limit for accepted relative difference |2*(x1-x2)/(x1+x2)| ; set to negative value to not test this; in case of zero mean, this test is assumed to fail, but test for absolute difference may still pass. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 79 of file imagecomp.c.
Check whether two IMG data have the same matrix (x,y,z) size.
Definition at line 18 of file imagecomp.c.
| int imgCompareTimes | ( | IMG * | d1, |
| IMG * | d2, | ||
| const float | test_abs, | ||
| const float | test_rel, | ||
| TPCSTATUS * | status ) |
Check whether IMG frame times (x values) are the same. Note that units are ignored here.
If either absolute or relative difference is below the limit, the test is reported as passed.
| d1 | Pointer to IMG structure. |
| d2 | Pointer to IMG structure. |
| test_abs | Limit for accepted absolute difference. |
| test_rel | Optional limit for accepted relative difference |2*(x1-x2)/(x1+x2)| ; set to negative value to not test this; in case of zero mean, this test is assumed to fail, but test for absolute difference may still pass. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 144 of file imagecomp.c.
Check whether time and concentration units are the same in two IMG data.
| d1 | Pointer to IMG structure. |
| d2 | Pointer to IMG structure. |
| status | Pointer to status data; enter NULL if not needed |
Definition at line 39 of file imagecomp.c.