PlusLib
2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
|
Class providing VTK video input interface for SonixRP. More...
#include <src/PlusDataCollection/SonixVideo/vtkPlusSonixPortaVideoSource.h>
Protected Member Functions | |
PlusStatus | AddFrameToBuffer (void *param, int id, bool motorRotationCcw, int motorStepCount) |
std::string | GetLastPortaError () |
PlusStatus | GetParamValue (char *paramId, int ¶mValue, int &validatedParamValue) |
virtual PlusStatus | InternalConnect () |
virtual PlusStatus | InternalDisconnect () |
virtual PlusStatus | InternalStartRecording () |
virtual PlusStatus | InternalStopRecording () |
virtual bool | IsTracker () const |
PlusStatus | SetParamValue (char *paramId, int paramValue, int &validatedParamValue) |
vtkPlusSonixPortaVideoSource () | |
~vtkPlusSonixPortaVideoSource () | |
Protected Member Functions inherited from vtkPlusUsDevice | |
void | CalculateImageToTransducer (igsioFieldMapType &customFields) |
virtual PlusStatus | InternalApplyImagingParameterChange () |
vtkPlusUsDevice () | |
virtual | ~vtkPlusUsDevice () |
Protected Member Functions inherited from vtkPlusDevice | |
PlusStatus | EnsureUniqueDataSourceId (const std::string &aSourceId) |
vtkXMLDataElement * | FindInputChannelElement (vtkXMLDataElement *rootXMLElement, const char *aChannelId) |
vtkXMLDataElement * | FindOutputChannelElement (vtkXMLDataElement *rootXMLElement, const char *aChannelId) |
vtkXMLDataElement * | FindThisDeviceElement (vtkXMLDataElement *rootXMLElement) |
virtual vtkPlusDataCollector * | GetDataCollector () |
double | GetRecordingStartTime () const |
bool | GetStartThreadForInternalUpdates () const |
bool | HasGracePeriodExpired () |
virtual void | InternalWriteInputChannels (vtkXMLDataElement *rootXMLElement) |
virtual void | InternalWriteOutputChannels (vtkXMLDataElement *rootXMLElement) |
virtual void | SetCorrectlyConfigured (bool) |
virtual void | SetRecordingStartTime (double) |
virtual void | SetStartThreadForInternalUpdates (bool) |
virtual PlusStatus | ToolTimeStampedUpdate (const std::string &aToolSourceId, vtkMatrix4x4 *matrix, ToolStatus status, unsigned long frameNumber, double unfilteredtimestamp, const igsioFieldMapType *customFields=NULL) |
virtual PlusStatus | ToolTimeStampedUpdateWithoutFiltering (const std::string &aToolSourceId, vtkMatrix4x4 *matrix, ToolStatus status, double unfilteredtimestamp, double filteredtimestamp, const igsioFieldMapType *customFields=NULL) |
vtkPlusDevice () | |
virtual | ~vtkPlusDevice () |
Additional Inherited Members | |
Public Types inherited from vtkPlusUsDevice | |
typedef vtkPlusDevice | Superclass |
Public Types inherited from vtkPlusDevice | |
typedef vtkImageAlgorithm | Superclass |
Public Member Functions inherited from vtkPlusUsDevice | |
virtual PlusStatus | AddVideoItemToVideoSource (vtkPlusDataSource &videoSource, const igsioVideoFrame &frame, long frameNumber, double unfilteredTimestamp=UNDEFINED_TIMESTAMP, double filteredTimestamp=UNDEFINED_TIMESTAMP, const igsioFieldMapType *customFields=NULL) |
virtual PlusStatus | AddVideoItemToVideoSource (vtkPlusDataSource &videoSource, void *imageDataPtr, US_IMAGE_ORIENTATION usImageOrientation, const FrameSizeType &frameSizeInPx, igsioCommon::VTKScalarPixelType pixelType, unsigned int numberOfScalarComponents, US_IMAGE_TYPE imageType, int numberOfBytesToSkip, long frameNumber, double unfilteredTimestamp=UNDEFINED_TIMESTAMP, double filteredTimestamp=UNDEFINED_TIMESTAMP, const igsioFieldMapType *customFields=NULL) |
virtual PlusStatus | AddVideoItemToVideoSources (const std::vector< vtkPlusDataSource * > &videoSources, const igsioVideoFrame &frame, long frameNumber, double unfilteredTimestamp=UNDEFINED_TIMESTAMP, double filteredTimestamp=UNDEFINED_TIMESTAMP, const igsioFieldMapType *customFields=NULL) override |
virtual PlusStatus | AddVideoItemToVideoSources (const std::vector< vtkPlusDataSource * > &videoSources, void *imageDataPtr, US_IMAGE_ORIENTATION usImageOrientation, const FrameSizeType &frameSizeInPx, igsioCommon::VTKScalarPixelType pixelType, unsigned int numberOfScalarComponents, US_IMAGE_TYPE imageType, int numberOfBytesToSkip, long frameNumber, double unfilteredTimestamp=UNDEFINED_TIMESTAMP, double filteredTimestamp=UNDEFINED_TIMESTAMP, const igsioFieldMapType *customFields=NULL) override |
virtual std::vector< double > | CalculateAngles () |
virtual std::vector< double > | CalculateBoundingBox () |
virtual std::vector< double > | CalculateDepths () |
virtual double | CalculateLinearWidth () |
virtual std::vector< double > | CalculateOrigin () |
virtual vtkPlusUsImagingParameters * | GetImagingParameters () |
virtual std::string | GetParameter (const std::string &key) const |
virtual PlusStatus | GetParameter (const std::string &key, std::string &outValue) const |
virtual IGTLIO_PROBE_TYPE | GetProbeType () |
bool | IsKnownKey (const std::string &queryKey) const |
virtual PlusStatus | SetNewImagingParameters (const vtkPlusUsImagingParameters &newImagingParameters) |
virtual PlusStatus | SetParameter (const std::string &key, const std::string &value) |
vtkGetStdStringMacro (ImageToTransducerTransformName) | |
vtkSetStdStringMacro (ImageToTransducerTransformName) | |
Public Member Functions inherited from vtkPlusDevice | |
PlusStatus | AddFieldDataSource (vtkPlusDataSource *aSource) |
PlusStatus | AddInputChannel (vtkPlusChannel *aChannel) |
PlusStatus | AddOutputChannel (vtkPlusChannel *aChannel) |
PlusStatus | AddTool (vtkPlusDataSource *tool, bool requireUniquePortName=true) |
PlusStatus | AddVideoSource (vtkPlusDataSource *anImage) |
void | ClearAllBuffers () |
virtual PlusStatus | Connect () |
virtual PlusStatus | CreateDefaultOutputChannel (const char *channelId=NULL, bool addSource=true) |
void | DeepCopy (const vtkPlusDevice &device) |
virtual PlusStatus | Disconnect () |
virtual PlusStatus | ForceUpdate () |
virtual double | GetAcquisitionRate () const |
virtual PlusStatus | GetBufferSize (vtkPlusChannel &aChannel, int &outVal, const std::string &aSourceId=std::string("")) |
virtual int | GetConnected () const |
virtual bool | GetCorrectlyConfigured () const |
PlusStatus | GetDataSource (const char *aSourceId, vtkPlusDataSource *&aSource) |
PlusStatus | GetDataSource (const std::string &aSourceId, vtkPlusDataSource *&aSource) |
virtual double | GetDesiredTimestamp () |
virtual std::string | GetDeviceId () const |
PlusStatus | GetFieldDataSource (const char *aSourceId, vtkPlusDataSource *&aSource) const |
PlusStatus | GetFieldDataSource (const std::string &aSourceId, vtkPlusDataSource *&aSource) const |
DataSourceContainerConstIterator | GetFieldDataSourcessIteratorBegin () const |
DataSourceContainerConstIterator | GetFieldDataSourcessIteratorEnd () const |
PlusStatus | GetFirstActiveOutputVideoSource (vtkPlusDataSource *&aVideoSource) |
PlusStatus | GetFirstActiveTool (vtkPlusDataSource *&aTool) const |
PlusStatus | GetFirstOutputChannel (vtkPlusChannel *&aChannel) |
PlusStatus | GetFirstVideoSource (vtkPlusDataSource *&anImage) |
virtual unsigned long | GetFrameNumber () const |
virtual double | GetFrameTimeStamp () const |
virtual PlusStatus | GetImage (const std::string &requestedImageId, std::string &assignedImageId, const std::string &imageReferencFrameName, vtkImageData *imageData, vtkMatrix4x4 *ijkToReferenceTransform) |
virtual PlusStatus | GetImageMetaData (igsioCommon::ImageMetaDataList &imageMetaDataItems) |
virtual US_IMAGE_TYPE | GetImageType (vtkPlusChannel &aChannel) |
PlusStatus | GetInputDevices (std::vector< vtkPlusDevice * > &outDeviceList) const |
PlusStatus | GetInputDevicesRecursive (std::vector< vtkPlusDevice * > &outDeviceList) const |
virtual PlusStatus | GetInputFrameSize (vtkPlusChannel &aChannel, unsigned int &x, unsigned int &y, unsigned int &z) const |
virtual PlusStatus | GetInputFrameSize (vtkPlusChannel &aChannel, FrameSizeType &dim) const |
double | GetInternalUpdateRate () const |
virtual double | GetLocalTimeOffsetSec () const |
double | GetMissingInputGracePeriodSec () const |
virtual int | GetNumberOfFieldDataSources () const |
virtual int | GetNumberOfTools () const |
virtual int | GetNumberOfVideoSources () const |
PlusStatus | GetOutputChannelByName (vtkPlusChannel *&aChannel, const char *aChannelId) |
PlusStatus | GetOutputChannelByName (vtkPlusChannel *&aChannel, const std::string &aChannelId) |
ChannelContainerConstIterator | GetOutputChannelsEnd () const |
ChannelContainerIterator | GetOutputChannelsEnd () |
ChannelContainerConstIterator | GetOutputChannelsStart () const |
ChannelContainerIterator | GetOutputChannelsStart () |
virtual PlusStatus | GetOutputFrameSize (vtkPlusChannel &aChannel, unsigned int &x, unsigned int &y, unsigned int &z) const |
virtual PlusStatus | GetOutputFrameSize (vtkPlusChannel &aChannel, FrameSizeType &dim) const |
virtual igsioCommon::VTKScalarPixelType | GetPixelType (vtkPlusChannel &aChannel) |
virtual double | GetStartTime () |
virtual double | GetTimestampClosestToDesired () |
PlusStatus | GetTool (const char *aToolSourceId, vtkPlusDataSource *&aTool) const |
PlusStatus | GetTool (const std::string &aToolSourceId, vtkPlusDataSource *&aTool) const |
PlusStatus | GetToolByPortName (const char *aPortName, vtkPlusDataSource *&aSource) |
PlusStatus | GetToolByPortName (const std::string &aPortName, vtkPlusDataSource *&aSource) |
DataSourceContainerConstIterator | GetToolIteratorBegin () const |
DataSourceContainerConstIterator | GetToolIteratorEnd () const |
std::string | GetToolReferenceFrameName () const |
virtual int | GetUpdateWithDesiredTimestamp () |
PlusStatus | GetVideoSource (const char *aSourceId, vtkPlusDataSource *&aVideoSource) |
PlusStatus | GetVideoSourceByIndex (const unsigned int index, vtkPlusDataSource *&aVideoSource) |
DataSourceContainerConstIterator | GetVideoSourceIteratorBegin () const |
DataSourceContainerConstIterator | GetVideoSourceIteratorEnd () const |
std::vector< vtkPlusDataSource * > | GetVideoSources () const |
PlusStatus | GetVideoSourcesByPortName (const char *aPortName, std::vector< vtkPlusDataSource * > &sources) |
PlusStatus | GetVideoSourcesByPortName (const std::string &aPortName, std::vector< vtkPlusDataSource * > &sources) |
virtual PlusStatus | InternalUpdate () |
virtual bool | IsConnected () const |
virtual bool | IsRecording () const |
virtual bool | IsResettable () |
virtual bool | IsVirtual () const |
virtual int | OutputChannelCount () const |
virtual PlusStatus | Probe () |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual PlusStatus | Reset () |
virtual PlusStatus | SendText (const std::string &textToSend, std::string *textReceived=NULL) |
PlusStatus | SetAcquisitionRate (double aRate) |
virtual PlusStatus | SetBufferSize (vtkPlusChannel &aChannel, int FrameBufferSize, const std::string &aSourceId=std::string("")) |
virtual void | SetDataCollector (vtkPlusDataCollector *_arg) |
virtual void | SetDesiredTimestamp (double) |
void | SetDeviceId (const std::string &id) |
void | SetFieldDataSourcesBufferSize (int aBufferSize) |
virtual PlusStatus | SetImageType (vtkPlusChannel &aChannel, US_IMAGE_TYPE imageType) |
virtual PlusStatus | SetInputFrameSize (vtkPlusDataSource &aSource, unsigned int x, unsigned int y, unsigned int z) |
virtual void | SetLocalTimeOffsetSec (double aTimeOffsetSec) |
virtual void | SetMissingInputGracePeriodSec (double) |
virtual PlusStatus | SetPixelType (vtkPlusChannel &aChannel, igsioCommon::VTKScalarPixelType pixelType) |
virtual void | SetStartTime (double startTime) |
void | SetToolReferenceFrameName (const std::string &frameName) |
void | SetToolsBufferSize (int aBufferSize) |
virtual void | SetUpdateWithDesiredTimestamp (int) |
virtual PlusStatus | StartRecording () |
virtual PlusStatus | StopRecording () |
virtual void | UpdateWithDesiredTimestampOff () |
virtual void | UpdateWithDesiredTimestampOn () |
virtual PlusStatus | WriteToolsToSequenceFile (const std::string &filename, bool useCompression=false) |
Static Public Member Functions inherited from vtkPlusUsDevice | |
static int | IsTypeOf (const char *type) |
static vtkPlusUsDevice * | New () |
static vtkPlusUsDevice * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkPlusDevice | |
static PlusStatus | GetToolReferenceFrameFromTrackedFrame (igsioTrackedFrame &aFrame, std::string &aToolReferenceFrameName) |
static int | IsTypeOf (const char *type) |
static vtkPlusDevice * | New () |
static vtkPlusDevice * | SafeDownCast (vtkObject *o) |
Public Attributes inherited from vtkPlusDevice | |
double | InternalUpdateRate |
vtkIGSIORecursiveCriticalSection * | UpdateMutex |
vtkTimeStamp | UpdateTime |
Static Public Attributes inherited from vtkPlusDevice | |
static const std::string | BMODE_PORT_NAME = "B" |
static const std::string | PARAMETER_XML_ELEMENT_TAG = "Parameter" |
static const std::string | PARAMETERS_XML_ELEMENT_TAG = "Parameters" |
static const std::string | RFMODE_PORT_NAME = "Rf" |
Static Protected Member Functions inherited from vtkPlusDevice | |
static void * | vtkDataCaptureThread (vtkMultiThreader::ThreadInfo *data) |
Static Protected Attributes inherited from vtkPlusDevice | |
static const int | VIRTUAL_DEVICE_FRAME_RATE = 50 |
Class providing VTK video input interface for SonixRP.
vtkPlusSonixPortaVideoSource is a subclass of vtkVideoSource that implementes Porta API for importing video directly from the Cine buffer of a Sonix RP Ultrasound machine.
You must call the ReleaseSystemResources() method before the application exits. Otherwise the application might hang while trying to exit.
the 3D/4D probe should always be connected to port-0
In order to reduce the number of missing frames the motor speed can be decreased by changing the b frame rate id in the imaging.set.xml file of the Porta SDK.
Usage: sonixGrabber = vtkPlusSonixPortaVideoSource::New(); sonixGrabber->SetPortaSettingPath( "../../dat/" ); sonixGrabber->SetPortaFirmwarePath( "../../fw/" ); sonixGrabber->SetPortaLUTPath( "C:/LUTs/" ); sonixGrabber->SetPortaCineSize( 256*1024*1024 ); not needed, defaults 256MB sonixGrabber->SetBLineDensity( 128 ); line density effect the frame rate sonixGrabber->Record(); imageviewer->SetInputData( sonixGrabber->GetOutput() );
Definition at line 80 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Definition at line 109 of file vtkPlusSonixPortaVideoSource.cxx.
|
protected |
Definition at line 150 of file vtkPlusSonixPortaVideoSource.cxx.
|
protected |
for internal use only
Definition at line 273 of file vtkPlusSonixPortaVideoSource.cxx.
|
protected |
Get the last error string returned by Porta
Definition at line 755 of file vtkPlusSonixPortaVideoSource.cxx.
|
protected |
For internal use only
Definition at line 787 of file vtkPlusSonixPortaVideoSource.cxx.
|
protectedvirtual |
Connect to device
Reimplemented from vtkPlusDevice.
Definition at line 428 of file vtkPlusSonixPortaVideoSource.cxx.
|
protectedvirtual |
Disconnect from device
Reimplemented from vtkPlusDevice.
Definition at line 638 of file vtkPlusSonixPortaVideoSource.cxx.
|
protectedvirtual |
Record incoming video at the specified FrameRate. The recording
Reimplemented from vtkPlusDevice.
Definition at line 650 of file vtkPlusSonixPortaVideoSource.cxx.
|
protectedvirtual |
Stop recording or playing.
Reimplemented from vtkPlusDevice.
Definition at line 660 of file vtkPlusSonixPortaVideoSource.cxx.
|
inlineprotectedvirtual |
Is this device a tracker
Reimplemented from vtkPlusDevice.
Definition at line 259 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
For internal use only
Definition at line 769 of file vtkPlusSonixPortaVideoSource.cxx.
|
protected |
Definition at line 249 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Definition at line 245 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Definition at line 246 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Definition at line 247 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Imaging parameters
Definition at line 225 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Porta can provide output on multiple virtual displays. This index identifies the one that this device uses.
Definition at line 240 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Definition at line 226 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Definition at line 227 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Indicates that current depth, spacing, transducer origin has to be queried
Definition at line 243 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Definition at line 230 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Definition at line 234 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Pointer to the hardware. Only required for SDK versions prior to 6.0
Definition at line 221 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Definition at line 222 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Porta initialization parameters
Definition at line 233 of file vtkPlusSonixPortaVideoSource.h.
|
protected |
Definition at line 228 of file vtkPlusSonixPortaVideoSource.h.