|
IUF-SDK-3
Interventional Ultrasound Library
|
#include <stdlib.h>#include <string.h>#include <iuf.h>#include <iufAcquisitionPrivate.h>#include <iufDataStreamDictPrivate.h>#include <iufFrameListPrivate.h>#include <iufHistoryNodePrivate.h>#include <iufIqFilePrivate.h>#include <iufIqFileStructure.h>#include <iufIqPatternListDictPrivate.h>#include <iufPulseDictPrivate.h>#include <iufReceiveChannelMapDictPrivate.h>#include <iufDemodulationDictPrivate.h>#include <iufSourceDictPrivate.h>#include <iufTransducerPrivate.h>#include <iufTransmitApodizationDictPrivate.h>Data Structures | |
| struct | IufIqFileInstance |
| struct | IufIqFile |
Macros | |
| #define | IUF_IQ_COMPONENT_I 0 |
| #define | IUF_IQ_COMPONENT_Q 1 |
Functions | |
| iuiqfi_t | iufIqFileInstanceCreate (void) |
| int | iufIqFileInstanceDelete (iuiqfi_t instance) |
| int | iufIqFileDelete (iuiqf_t iqFile) |
Creates a datablock for a single channel (i.e. numSamplesPerLine floats) for the acquisition with the name label. More... | |
| iuiqf_t | iufIqFileCreate (const char *filename) |
| Create an empty file instance with a filename. More... | |
| int | iufIqFileGetNumFrames (iuiqf_t iqFile) |
| Returns the number of frames an iqFile has. More... | |
| int | iufIqFileGetNumChannels (iuiqf_t iqFile, char *label) |
Gets the number of channels for the patternList type label. More... | |
| int | iufIqFileGetSamplesPerLine (iuiqf_t iqFile, char *label) |
Gets the number of samples per line for this label. More... | |
| int | iufIqFileGetNumResponses (iuiqf_t iqFile, char *label) |
Gets the number of responses for the patternList type label. More... | |
| iud_t | iufIqFileFrameCreate (iuiqf_t iqFile, char *label) |
Creates a datablock for the I or Q Component of a frame for the acquisition with the name label. Typically called on both components. More... | |
| iud_t | iufIqFileResponseCreate (iuiqf_t iqFile, char *label) |
Creates a datablock for a response (numSamplesPerLine * numChannels) for the acquisition with the name label. Typically called on both components. More... | |
| iud_t | iufIqFileChannelCreate (iuiqf_t iqFile, char *label) |
Creates a datablock for an single I channel (i.e. numSamplesPerLine floats) for the acquisition with the name label. Typically called on both components. More... | |
| void * | iufIqFileInstanceLoad (hid_t handle) |
| iuiqf_t | iufIqFileNodeLoad (const char *pFilename) |
| Load an iqFile instance from a file. More... | |
| int | iufIqFileSaveInstance (hid_t handle, iuiqfi_t instanceData) |
| int | iufIqFileNodeSave (iuiqf_t iqFile) |
| Save (serialize) the iqFile instance to file. More... | |
| int | iufIqFileClose (iuiqf_t iqFile) |
| Closes access to the iqFile. More... | |
| int | iufIqFileCompareInstance (iuiqfi_t reference, iuiqfi_t actual) |
| int | iufIqFileCompare (iuiqf_t reference, iuiqf_t actual) |
| Compares two iqFile instances with each other. More... | |
| iufl_t | iufIqFileGetFrameList (iuiqf_t iqFile) |
| Gets the IufFrameList object from an iqFile. More... | |
| iuiqpald_t | iufIqFileGetIqPatternListDict (iuif_t iqFile) |
| iupd_t | iufIqFileGetPulseDict (iuiqf_t iqFile) |
| Gets the IufPulseDict object from an iqFile. More... | |
| iusd_t | iufIqFileGetSourceDict (iuiqf_t iqFile) |
| Gets the IufSourceDict object from an iqFile. More... | |
| iurcmd_t | iufIqFileGetReceiveChannelMapDict (iuiqf_t iqFile) |
| Gets the IufReceiveChannelMapDict object from an iqFile. More... | |
| iutad_t | iufIqFileGetTransmitApodizationDict (iuiqf_t iqFile) |
| Gets the IufTransmitApodizationDict object from an iqFile. More... | |
| iudmd_t | iufIqFileGetDemodulationDict (iuiqf_t iqFile) |
| Gets the IufReceiveSettingsDict object from an iqFile. More... | |
| iua_t | iufIqFileGetAcquisition (iuiqf_t iqFile) |
| Gets the IufAcquisition object from an iqFile. More... | |
| iut_t | iufIqFileGetTransducer (iuiqf_t iqFile) |
| Gets the IufTransducer object from an iqFile. More... | |
| int | iufIqFileSetFrameList (iuiqf_t iqFile, iufl_t frameList) |
| Sets the frameList of an iqFile. More... | |
| int | iufIqFileSetPatternListDict (iuiqf_t iqFile, iuiqpald_t patternListDict) |
| Sets the patternListDict of an iqFile. More... | |
| int | iufIqFileSetPulseDict (iuiqf_t iqFile, iupd_t pulseDict) |
| Sets the pulseDict of an iqFile. More... | |
| int | iufIqFileSetSourceDict (iuiqf_t iqFile, iusd_t sourceDict) |
| Sets the sourceDict of an iqFile. More... | |
| int | iufIqFileSetReceiveChannelMapDict (iuiqf_t iqFile, iurcmd_t receiveChannelMapDict) |
| Sets the receiveChannelMap of an iqFile. More... | |
| int | iufIqFileSetTransmitApodizationDict (iuif_t iqFile, iutad_t transmitApodizationDict) |
| int | iufIqFileSetDemodulationDict (iuiqf_t iqFile, iudmd_t demodulationDict) |
| Sets the receiveSettingsDict of an iqFile. More... | |
| int | iufIqFileSetAcquisition (iuiqf_t iqFile, iua_t acquisition) |
| Sets the acquisition info of an iqFile. More... | |
| int | iufIqFileSetTransducer (iuiqf_t iqFile, iut_t transducer) |
| Sets the transducer of an iqFile. More... | |
| int | iufIqFileSetFilename (iuiqf_t iqFile, char *fileName) |
| void | fillChunkDims (hsize_t *chunkDims, hsize_t *rfDataDims, int numDims, int numItems) |
| int | iufIqFileFrameSave (iuiqf_t iqFile, char *label, IufComponent component, iud_t frame, iuo_t frame_offset) |
| Saves a frame of data to an iqFile. More... | |
| int | iufIqFileResponseSave (iuiqf_t iqFile, char *label, IufComponent component, iud_t response, iuo_t response_offset) |
| Saves a channel of data to an iqFile. More... | |
| int | iufIqFileChannelSave (iuiqf_t iqFile, char *label, IufComponent component, iud_t channel, iuo_t channel_offset) |
| Saves a channel of data to an iqFile. More... | |
| int | iufIqFileFrameLoad (iuiqf_t iqFile, char *label, IufComponent component, iud_t frame, iuo_t frame_offset) |
| Loads a frame of data to an iqFile. More... | |
| int | iufIqFileResponseLoad (iuiqf_t iqFile, char *label, IufComponent component, iud_t response, iuo_t response_offset) |
| Loads a single response of data from an iqFile. More... | |
| int | iufIqFileChannelLoad (iuiqf_t iqFile, char *label, IufComponent component, iud_t channel, iuo_t channel_offset) |
| Loads a single channel of data from an iqFile. More... | |
| struct IufIqFileInstance |
| Data Fields | ||
|---|---|---|
| iua_t | acquisition |
The description of the performed acquisition |
| IUF_BOOL | deepDelete | |
| iudmd_t | demodulationDict |
a dictionary of receiveSettings |
| iufl_t | frameList | |
| hid_t | handle |
HDF5 file handle |
| iudsd_t | iDataStreamDict |
Contains dataset administration |
| iuiqpald_t | iqPatternListDict |
a dictionary of pattern lists |
| int | IufVersion |
The version of iq file format |
| const char * | pFilename |
the filename |
| iupd_t | pulseDict |
a dictionary of pulses |
| iusd_t | pulseSourceDict |
a dictionary of sources |
| iudsd_t | qDataStreamDict |
Contains dataset administration |
| iurcmd_t | receiveChannelMapDict |
a dictionary of receiveChannelMaps |
| iut_t | transducer |
The transducer description |
| iutad_t | transmitApodizationDict |
a dictionary of transmitApodizations |
| struct IufIqFile |
| Data Fields | ||
|---|---|---|
| iuhn_t | history | |
| #define IUF_IQ_COMPONENT_I 0 |
| #define IUF_IQ_COMPONENT_Q 1 |
| void fillChunkDims | ( | hsize_t * | chunkDims, |
| hsize_t * | rfDataDims, | ||
| int | numDims, | ||
| int | numItems | ||
| ) |
Creates a datablock for an single I channel (i.e. numSamplesPerLine floats) for the acquisition with the name label. Typically called on both components.
| iqFile | The IufIqFile of interest |
| label | The acquisition type |
| int iufIqFileChannelLoad | ( | iuiqf_t | iqFile, |
| char * | label, | ||
| IufComponent | component, | ||
| iud_t | channel, | ||
| iuo_t | channel_offset | ||
| ) |
Loads a single channel of data from an iqFile.
| iqFile | The IufIqFile of interest |
| label | The label of the patternList |
| component | Is it an I or a Q component? |
| channel | The channel data block to be filled |
| channel_offset | The offset in the datablock |
| int iufIqFileChannelSave | ( | iuiqf_t | iqFile, |
| char * | label, | ||
| IufComponent | component, | ||
| iud_t | channel, | ||
| iuo_t | channel_offset | ||
| ) |
| int iufIqFileClose | ( | iuiqf_t | iqFile | ) |
Closes access to the iqFile.
| iqFile | The IufIqFile of interest |
| iuiqf_t iufIqFileCreate | ( | const char * | filename | ) |
Create an empty file instance with a filename.
| filename | The filename for the file instance. |
| int iufIqFileDelete | ( | iuiqf_t | iqFile | ) |
Creates a datablock for a single channel (i.e. numSamplesPerLine floats) for the acquisition with the name label.
| iqFile | The IufIqFile of interest |
Creates a datablock for the I or Q Component of a frame for the acquisition with the name label. Typically called on both components.
| iqFile | The IufIqFile of interest |
| label | The acquisition type |
| int iufIqFileFrameLoad | ( | iuiqf_t | iqFile, |
| char * | label, | ||
| IufComponent | component, | ||
| iud_t | frame, | ||
| iuo_t | frame_offset | ||
| ) |
| int iufIqFileFrameSave | ( | iuiqf_t | iqFile, |
| char * | label, | ||
| IufComponent | component, | ||
| iud_t | frame, | ||
| iuo_t | frame_offset | ||
| ) |
Gets the IufAcquisition object from an iqFile.
| iqFile | The IufIqFile of interest |
Gets the IufReceiveSettingsDict object from an iqFile.
| iqFile | The IufIqFile of interest |
Gets the IufFrameList object from an iqFile.
| iqFile | The IufIqFile of interest |
| iuiqpald_t iufIqFileGetIqPatternListDict | ( | iuif_t | iqFile | ) |
| int iufIqFileGetNumChannels | ( | iuiqf_t | iqFile, |
| char * | label | ||
| ) |
Gets the number of channels for the patternList type label.
| iqFile | The IufIqFile of interest |
| label | the patternList type |
| int iufIqFileGetNumFrames | ( | iuiqf_t | iqFile | ) |
Returns the number of frames an iqFile has.
| iqFile | The IufIqFile of interest |
| int iufIqFileGetNumResponses | ( | iuiqf_t | iqFile, |
| char * | label | ||
| ) |
Gets the number of responses for the patternList type label.
| iqFile | The IufIqFile of interest |
| label | the patternList type |
Gets the IufPulseDict object from an iqFile.
| iqFile | The IufIqFile of interest |
Gets the IufReceiveChannelMapDict object from an iqFile.
| iqFile | The IufIqFile of interest |
| int iufIqFileGetSamplesPerLine | ( | iuiqf_t | iqFile, |
| char * | label | ||
| ) |
Gets the number of samples per line for this label.
| iqFile | The IufIqFile of interest |
| label | the patternList type |
Gets the IufSourceDict object from an iqFile.
| iqFile | The IufIqFile of interest |
Gets the IufTransducer object from an iqFile.
| iqFile | The IufIqFile of interest |
Gets the IufTransmitApodizationDict object from an iqFile.
| iqFile | The IufIqFile of interest |
| iuiqfi_t iufIqFileInstanceCreate | ( | void | ) |
| int iufIqFileInstanceDelete | ( | iuiqfi_t | instance | ) |
| void* iufIqFileInstanceLoad | ( | hid_t | handle | ) |
| iuiqf_t iufIqFileNodeLoad | ( | const char * | pFilename | ) |
Load an iqFile instance from a file.
| pFilename | The filename of the iqFile |
| int iufIqFileNodeSave | ( | iuiqf_t | iqFile | ) |
Save (serialize) the iqFile instance to file.
| iqFile | The IufIqFile of interest |
Creates a datablock for a response (numSamplesPerLine * numChannels) for the acquisition with the name label. Typically called on both components.
| iqFile | The IufIqFile of interest |
| label | The acquisition type |
| int iufIqFileResponseLoad | ( | iuiqf_t | iqFile, |
| char * | label, | ||
| IufComponent | component, | ||
| iud_t | response, | ||
| iuo_t | response_offset | ||
| ) |
Loads a single response of data from an iqFile.
| iqFile | The IufIqFile of interest |
| label | The label of the patternList |
| component | Is it an I or a Q component? |
| response | The response data to load |
| response_offset | The offset in the datablock |
| int iufIqFileResponseSave | ( | iuiqf_t | iqFile, |
| char * | label, | ||
| IufComponent | component, | ||
| iud_t | response, | ||
| iuo_t | response_offset | ||
| ) |
| int iufIqFileSaveInstance | ( | hid_t | handle, |
| iuiqfi_t | instanceData | ||
| ) |
Sets the acquisition info of an iqFile.
| iqFile | The IufIqFile of interest |
| acquisition | The IufAcquisition to set |
Sets the receiveSettingsDict of an iqFile.
| iqFile | The IufIqFile of interest |
| demodulationDict | The IufTransmitApodizationDict to set |
| int iufIqFileSetFilename | ( | iuiqf_t | iqFile, |
| char * | fileName | ||
| ) |
Sets the frameList of an iqFile.
| iqFile | The IufIqFile of interest |
| frameList | The IufFrameList to set |
| int iufIqFileSetPatternListDict | ( | iuiqf_t | iqFile, |
| iuiqpald_t | iqPatternListDict | ||
| ) |
Sets the patternListDict of an iqFile.
| iqFile | The IufIqFile of interest |
| patternListDict | The IufPatternListDict to set |
Sets the pulseDict of an iqFile.
| iqFile | The IufIqFile of interest |
| pulseDict | The IufPulseDict to set |
Sets the receiveChannelMap of an iqFile.
| iqFile | The IufIqFile of interest |
| receiveChannelMapDict | The IufReceiveChannelMapDict to set |
Sets the sourceDict of an iqFile.
| iqFile | The IufIqFile of interest |
| sourceDict | The IufSourceDict to set |
Sets the transducer of an iqFile.
| iqFile | The IufIqFile of interest |
| transducer | The IufTransducer to set |