IUF-SDK-3
Interventional Ultrasound Library
iufTGC.h
Go to the documentation of this file.
1 #ifndef IUFLIBRARY_IUFHLTGC_H
2 #define IUFLIBRARY_IUFHLTGC_H
3 
4 // ADT
5 typedef struct IufTGC IufTGC;
9 typedef IufTGC *iutgc_t;
10 #define IUTGC_INVALID (iutgc_t) NULL
11 
16 (
17  int numTGCValues
18 );
19 
23 int iufTGCDelete
24 (
25  iutgc_t tgc
26 );
27 
31 int iufTGCCompare
32 (
33  iutgc_t reference,
34  iutgc_t actual
35 );
36 
41 (
42  iutgc_t tgc
43 );
44 
48 float iufTGCGetTime
49 (
50  iutgc_t tgc,
51  int index
52 );
53 
57 float iufTGCGetGain
58 (
59  iutgc_t tgc,
60  int index
61 );
62 
66 int iufTGCSet
67 (
68  iutgc_t tgc,
69  int index,
70  float time,
71  float gain
72 );
73 
74 #endif //IUFLIBRARY_IUFHLTGC_H
int iufTGCDelete(iutgc_t tgc)
Frees the memory of the TGC object.
Definition: iufTGC.c:44
int iufTGCCompare(iutgc_t reference, iutgc_t actual)
Checks if two TGCs are equal.
Definition: iufTGC.c:58
Definition: iufTGC.c:7
int numTGCValues
Definition: iufTGC.c:9
int iufTGCSet(iutgc_t tgc, int index, float time, float gain)
Set a [time,gain] pair of the TGC function at index.
Definition: iufTGC.c:121
int iufTGCGetNumValues(iutgc_t tgc)
Get the number of [time,gain] pairs that the TGC function has.
Definition: iufTGC.c:77
float iufTGCGetTime(iutgc_t tgc, int index)
Get the time value of a point in the TGC function at index.
Definition: iufTGC.c:87
IufTGC * iutgc_t
Definition: iufTGC.h:9
iutgc_t iufTGCCreate(int numTGCValues)
Create an empty TGC function of numTGC values.
Definition: iufTGC.c:16
float iufTGCGetGain(iutgc_t tgc, int index)
Get the gain value of a point in the TGC function at index.
Definition: iufTGC.c:103