IUF-SDK-3
Interventional Ultrasound Library
iufReceiveChannelMap.h File Reference
#include <iufTypes.h>

Go to the source code of this file.

Macros

#define IURCM_INVALID   (iurcm_t) NULL
 

Typedefs

typedef IufReceiveChannelMapiurcm_t
 

Functions

iurcm_t iufReceiveChannelMapCreate (int numChannels)
 Create an empty IufReceiveChannelMap with a size of numChannels. More...
 
int iufReceiveChannelMapDelete (iurcm_t channelMap)
 Delete an IufReceiveChannelMap. More...
 
IUF_BOOL iufReceiveChannelMapCompare (iurcm_t reference, iurcm_t actual)
 Compare two IufReceiveChannelMap object with each other. More...
 
int iufReceiveChannelMapGetNumChannels (iurcm_t channelMap)
 Get the number of channels that the map has. More...
 
int iufReceiveChannelMapGetChannel (iurcm_t channelMap, int index)
 Get the index value (the transducer element number) at channelMap mapIdx. More...
 
int iufReceiveChannelMapGetNumDelays (iurcm_t channelMap)
 Same as iufReceiveChannelMapGetNumChannels. More...
 
float iufReceiveChannelMapGetStartDelay (iurcm_t channelMap, int index)
 Gets the (digitization) delay of each channel. More...
 
int iufReceiveChannelMapSetChannel (iurcm_t channelMap, int index, int transducerIdx)
 Sets the transducer index for a channel. More...
 
int iufReceiveChannelMapSetMap (iurcm_t channelMap, int *map)
 Sets a transducer index for all channels at once. More...
 
int iufReceiveChannelMapSetStartDelay (iurcm_t channelMap, int index, float delay)
 Sets the (digitization) delay of a channel [seconds]. If not set the value is 0.0f. More...
 

Macro Definition Documentation

◆ IURCM_INVALID

#define IURCM_INVALID   (iurcm_t) NULL

Typedef Documentation

◆ iurcm_t

The receive channel map is a list of with numChannels containing the indices of the transducer elements and a channel delay of each channel. During an acquisition not all transducer elements might be digitized, i.e. due to bandwidth limitations and might not all be synchronous. If only numChannels are digitized in parallel, the receivechannelmap indicates which transducers elements are selected (and there order).

Function Documentation

◆ iufReceiveChannelMapCompare()

IUF_BOOL iufReceiveChannelMapCompare ( iurcm_t  reference,
iurcm_t  actual 
)

Compare two IufReceiveChannelMap object with each other.

Returns
Returns IUF_TRUE in case the two maps are equal and IUF_FALSE otherwise
Parameters
referenceThe IufReceiveChannelMap to compare to
actualThe IufReceiveChannelMap to compare with

◆ iufReceiveChannelMapCreate()

iurcm_t iufReceiveChannelMapCreate ( int  numChannels)

Create an empty IufReceiveChannelMap with a size of numChannels.

Returns
Returns the created map or IURCM_INVALID in case of an error.

◆ iufReceiveChannelMapDelete()

int iufReceiveChannelMapDelete ( iurcm_t  channelMap)

Delete an IufReceiveChannelMap.

Returns
Returns IUF_E_OK if successful or IUF_ERR_VALUE otherwise
Parameters
channelMapthe map of interest

◆ iufReceiveChannelMapGetChannel()

int iufReceiveChannelMapGetChannel ( iurcm_t  channelMap,
int  index 
)

Get the index value (the transducer element number) at channelMap mapIdx.

Returns
Returns the index or -1 in case it was not found
Parameters
channelMapThe IufReceiveChannelMap of interest
indexThe channel number of the map.

◆ iufReceiveChannelMapGetNumChannels()

int iufReceiveChannelMapGetNumChannels ( iurcm_t  channelMap)

Get the number of channels that the map has.

Returns
Returns the map size
Parameters
channelMapThe IufReceiveChannelMap of interest

◆ iufReceiveChannelMapGetNumDelays()

int iufReceiveChannelMapGetNumDelays ( iurcm_t  channelMap)

Same as iufReceiveChannelMapGetNumChannels.

Returns
Returns the number of channels which is equal to the number of start delays.
Parameters
channelMapthe IufReceiveChannelMap of interest

◆ iufReceiveChannelMapGetStartDelay()

float iufReceiveChannelMapGetStartDelay ( iurcm_t  channelMap,
int  index 
)

Gets the (digitization) delay of each channel.

Returns
Returns the delay value in seconds.
Parameters
channelMapthe IufReceiveChannelMap of interest
indexthe channel index

◆ iufReceiveChannelMapSetChannel()

int iufReceiveChannelMapSetChannel ( iurcm_t  channelMap,
int  index,
int  transducerIdx 
)

Sets the transducer index for a channel.

Returns
Returns IUF_E_OK when succesful or -1 in case of an invalid argument.
Parameters
channelMapthe IufReceiveChannelMap of interest
indexthe channel index
transducerIdxthe transducer index

◆ iufReceiveChannelMapSetMap()

int iufReceiveChannelMapSetMap ( iurcm_t  channelMap,
int *  map 
)

Sets a transducer index for all channels at once.

Returns
Returns IUF_E_OK when succesful or -1 in case of an invalid argument.
Parameters
channelMapthe IufReceiveChannelMap of interest
mapthe array of transducer indices.

◆ iufReceiveChannelMapSetStartDelay()

int iufReceiveChannelMapSetStartDelay ( iurcm_t  channelMap,
int  index,
float  delay 
)

Sets the (digitization) delay of a channel [seconds]. If not set the value is 0.0f.

Returns
Returns IUF_E_OK when succesful or -1 in case of an invalid argument.
Parameters
channelMapthe IufReceiveChannelMap of interest
indexthe channel index
delaythe channel delay in seconds