#include <ProcessObject.hpp>
Inherits fast::Object.
Inherited by fast::AddTransformation, fast::BlockMatching, fast::BoundingBoxSetAccumulator, fast::CenterlineExtraction, fast::ClassificationToText, fast::CoherentPointDrift, fast::Dilation, fast::Erosion, fast::EulerGradientVectorFlow, fast::FileExporter, fast::GaussianSmoothingFilter, fast::HDF5TensorExporter, fast::HDF5TensorImporter, fast::HounsefieldConverter, fast::ImageChannelConverter, fast::ImageCropper, fast::ImageExporter, fast::ImageFileExporter, fast::ImageFileImporter, fast::ImageGradient, fast::ImageInverter, fast::ImageMovingAverage, fast::ImageMultiply, fast::ImageResampler, fast::ImageResizer, fast::ImageSlicer, fast::ImagesToSequence, fast::ImageWeightedMovingAverage, fast::Importer, fast::InverseGradientSegmentation, fast::IterativeClosestPoint, fast::ITKImageExporter< TImage >, fast::ITKImageImporter< TImage >, fast::KalmanFilter, fast::LabelModifier, fast::LaplacianOfGaussian, fast::LevelSetSegmentation, fast::LungSegmentation, fast::MetaImageExporter, fast::MultigridGradientVectorFlow, fast::NeuralNetwork, fast::NonLocalMeans, fast::NonMaximumSuppression, fast::PatchStitcher, fast::PipelineSynchronizer, fast::Plotter, fast::RegionProperties, fast::Renderer, fast::RidgeTraversalCenterlineExtraction, fast::RunLambda, fast::ScaleImage, fast::SeededRegionGrowing, fast::SegmentationAlgorithm, fast::SegmentationVolumeReconstructor, fast::SetTransformation, fast::Skeletonization, fast::Streamer, fast::StreamExporter, fast::StreamToFileExporter, fast::SurfaceExtraction, fast::TemplateMatching, fast::TensorToSegmentation, fast::TubeSegmentationAndCenterlineExtraction, fast::UltrasoundImageCropper, fast::UltrasoundImageEnhancement, fast::UltrasoundVesselDetection, fast::UltrasoundVesselSegmentation, fast::VectorMedianFilter, fast::View, fast::VTKImageExporter, fast::VTKImageImporter, fast::VTKMeshExporter, and fast::WholeSlideImageImporter.
|
| ProcessObject () |
|
virtual void | execute ()=0 |
|
virtual void | preExecute () |
|
virtual void | postExecute () |
|
template<class DataType > |
void | createInputPort (uint portID, bool required=true) |
|
template<class DataType > |
void | createOutputPort (uint portID) |
|
template<class DataType > |
std::shared_ptr< DataType > | getInputData (uint portID=0) |
|
template<class DataType > |
std::shared_ptr< DataType > | getOutputData (uint portID=0) |
|
void | addOutputData (uint portID, DataObject::pointer data) |
|
bool | hasNewInputData (uint portID) |
|
virtual void | waitToFinish () |
|
void | createOpenCLProgram (std::string sourceFilename, std::string name="") |
|
cl::Program | getOpenCLProgram (std::shared_ptr< OpenCLDevice > device, std::string name="", std::string buildOptions="") |
|
void | createFloatAttribute (std::string id, std::string name, std::string description, float initialValue) |
|
void | createIntegerAttribute (std::string id, std::string name, std::string description, int initialValue) |
|
void | createBooleanAttribute (std::string id, std::string name, std::string description, bool initialValue) |
|
void | createStringAttribute (std::string id, std::string name, std::string description, std::string initialValue) |
|
float | getFloatAttribute (std::string id) |
|
int | getIntegerAttribute (std::string id) |
|
bool | getBooleanAttribute (std::string id) |
|
std::string | getStringAttribute (std::string id) |
|
std::vector< float > | getFloatListAttribute (std::string id) |
|
std::vector< int > | getIntegerListAttribute (std::string id) |
|
std::vector< bool > | getBooleanListAttribute (std::string id) |
|
std::vector< std::string > | getStringListAttribute (std::string id) |
|
void | changeDeviceOnInputs (uint deviceNumber, ExecutionDevice::pointer device) |
|
void | validateInputPortExists (uint portID) |
|
void | validateOutputPortExists (uint portID) |
|
Reporter & | reportError () |
|
Reporter & | reportWarning () |
|
Reporter & | reportInfo () |
|
ReporterEnd | reportEnd () const |
|
|
bool | mIsModified |
|
int | m_lastExecuteToken = -1 |
|
RuntimeMeasurementsManager::pointer | mRuntimeManager |
|
std::unordered_map< uint, bool > | mRequiredInputs |
|
std::unordered_map< uint, std::vector< uint > > | mInputDevices |
|
std::unordered_map< uint, ExecutionDevice::pointer > | mDevices |
|
std::unordered_map< uint, DeviceCriteria > | mDeviceCriteria |
|
std::unordered_map< uint, DataChannel::pointer > | mInputConnections |
|
std::unordered_map< uint, std::vector< std::weak_ptr< DataChannel > > > | mOutputConnections |
|
std::unordered_map< uint, bool > | mInputPorts |
|
std::unordered_set< uint > | mOutputPorts |
|
std::unordered_map< uint, std::pair< DataObject::pointer, uint64_t > > | mLastProcessed |
|
std::unordered_map< std::string, std::shared_ptr< OpenCLProgram > > | mOpenCLPrograms |
|
std::unordered_map< std::string, std::shared_ptr< Attribute > > | mAttributes |
|
std::unordered_map< std::string, std::string > | m_frameData |
|
std::unordered_set< std::string > | m_lastFrame |
|
int | m_maximumNrOfFrames = -1 |
|
std::weak_ptr< Object > | mPtr |
|
◆ pointer
◆ ~ProcessObject()
virtual fast::ProcessObject::~ProcessObject |
( |
| ) |
|
|
virtual |
◆ ProcessObject()
fast::ProcessObject::ProcessObject |
( |
| ) |
|
|
protected |
◆ addOutputData()
◆ changeDeviceOnInputs()
◆ createBooleanAttribute()
void fast::ProcessObject::createBooleanAttribute |
( |
std::string |
id, |
|
|
std::string |
name, |
|
|
std::string |
description, |
|
|
bool |
initialValue |
|
) |
| |
|
protected |
◆ createFloatAttribute()
void fast::ProcessObject::createFloatAttribute |
( |
std::string |
id, |
|
|
std::string |
name, |
|
|
std::string |
description, |
|
|
float |
initialValue |
|
) |
| |
|
protected |
◆ createInputPort()
template<class DataType >
void fast::ProcessObject::createInputPort |
( |
uint |
portID, |
|
|
bool |
required = true |
|
) |
| |
|
protected |
◆ createIntegerAttribute()
void fast::ProcessObject::createIntegerAttribute |
( |
std::string |
id, |
|
|
std::string |
name, |
|
|
std::string |
description, |
|
|
int |
initialValue |
|
) |
| |
|
protected |
◆ createOpenCLProgram()
void fast::ProcessObject::createOpenCLProgram |
( |
std::string |
sourceFilename, |
|
|
std::string |
name = "" |
|
) |
| |
|
protected |
◆ createOutputPort()
template<class DataType >
void fast::ProcessObject::createOutputPort |
( |
uint |
portID | ) |
|
|
protected |
◆ createStringAttribute()
void fast::ProcessObject::createStringAttribute |
( |
std::string |
id, |
|
|
std::string |
name, |
|
|
std::string |
description, |
|
|
std::string |
initialValue |
|
) |
| |
|
protected |
◆ disableRuntimeMeasurements()
void fast::ProcessObject::disableRuntimeMeasurements |
( |
| ) |
|
◆ enableRuntimeMeasurements()
void fast::ProcessObject::enableRuntimeMeasurements |
( |
| ) |
|
◆ execute()
virtual void fast::ProcessObject::execute |
( |
| ) |
|
|
protectedpure virtual |
Implemented in fast::FileExporter, fast::BoundingBoxSetAccumulator, fast::Renderer, fast::FlowNetwork, fast::PatchGenerator, fast::RegionProperties, fast::CameraStreamer, fast::ImagesToSequence, fast::PipelineSynchronizer, fast::UFFStreamer, fast::LinePlotter, fast::SegmentationLabelRenderer, fast::ImageMovingAverage, fast::ImageWeightedMovingAverage, fast::ImageToBatchGenerator, fast::PatchStitcher, fast::TensorToSegmentation, fast::LabelModifier, fast::NonMaximumSuppression, fast::FileStreamer, fast::TissueSegmentation, fast::CoherentPointDrift, fast::GaussianSmoothingFilter, fast::ImageSharpening, fast::RunLambda, and fast::ImageChannelConverter.
◆ getAllRuntimes()
◆ getAttribute()
std::shared_ptr<Attribute> fast::ProcessObject::getAttribute |
( |
std::string |
id | ) |
|
◆ getAttributes()
std::unordered_map<std::string, std::shared_ptr<Attribute> > fast::ProcessObject::getAttributes |
( |
| ) |
|
◆ getBooleanAttribute()
bool fast::ProcessObject::getBooleanAttribute |
( |
std::string |
id | ) |
|
|
protected |
◆ getBooleanListAttribute()
std::vector<bool> fast::ProcessObject::getBooleanListAttribute |
( |
std::string |
id | ) |
|
|
protected |
◆ getDevice()
◆ getFloatAttribute()
float fast::ProcessObject::getFloatAttribute |
( |
std::string |
id | ) |
|
|
protected |
◆ getFloatListAttribute()
std::vector<float> fast::ProcessObject::getFloatListAttribute |
( |
std::string |
id | ) |
|
|
protected |
◆ getInputData()
template<class DataType >
std::shared_ptr< DataType > fast::ProcessObject::getInputData |
( |
uint |
portID = 0 | ) |
|
|
protected |
◆ getInputPort()
◆ getIntegerAttribute()
int fast::ProcessObject::getIntegerAttribute |
( |
std::string |
id | ) |
|
|
protected |
◆ getIntegerListAttribute()
std::vector<int> fast::ProcessObject::getIntegerListAttribute |
( |
std::string |
id | ) |
|
|
protected |
◆ getMainDevice()
◆ getNameOfClass()
virtual std::string fast::ProcessObject::getNameOfClass |
( |
| ) |
const |
|
pure virtual |
◆ getNrOfInputConnections()
int fast::ProcessObject::getNrOfInputConnections |
( |
| ) |
const |
◆ getNrOfOutputPorts()
int fast::ProcessObject::getNrOfOutputPorts |
( |
| ) |
const |
◆ getOpenCLProgram()
cl::Program fast::ProcessObject::getOpenCLProgram |
( |
std::shared_ptr< OpenCLDevice > |
device, |
|
|
std::string |
name = "" , |
|
|
std::string |
buildOptions = "" |
|
) |
| |
|
protected |
◆ getOutputData()
template<class DataType >
std::shared_ptr< DataType > fast::ProcessObject::getOutputData |
( |
uint |
portID = 0 | ) |
|
|
protected |
◆ getOutputPort()
◆ getRuntime() [1/2]
◆ getRuntime() [2/2]
◆ getStaticNameOfClass()
static std::string fast::ProcessObject::getStaticNameOfClass |
( |
| ) |
|
|
inlinestatic |
◆ getStringAttribute()
std::string fast::ProcessObject::getStringAttribute |
( |
std::string |
id | ) |
|
|
protected |
◆ getStringListAttribute()
std::vector<std::string> fast::ProcessObject::getStringListAttribute |
( |
std::string |
id | ) |
|
|
protected |
◆ hasNewInputData()
bool fast::ProcessObject::hasNewInputData |
( |
uint |
portID | ) |
|
|
protected |
◆ loadAttributes()
virtual void fast::ProcessObject::loadAttributes |
( |
| ) |
|
|
virtual |
Reimplemented in fast::BlockMatching, fast::SegmentationPyramidRenderer, fast::View, fast::OpenIGTLinkStreamer, fast::FileStreamer, fast::ClariusStreamer, fast::MovieStreamer, fast::UFFStreamer, fast::UltrasoundImageCropper, fast::AirwaySegmentation, fast::SegmentationRenderer, fast::CameraStreamer, fast::ImagesToSequence, fast::ImageMovingAverage, fast::ImageWeightedMovingAverage, fast::PatchGenerator, fast::HeatmapRenderer, fast::SegmentationLabelRenderer, fast::ImageResizer, fast::VectorMedianFilter, fast::NonLocalMeans, fast::ImagePyramidRenderer, fast::BinaryThresholding, fast::WholeSlideImageImporter, fast::HDF5TensorExporter, fast::HDF5TensorImporter, fast::ImageFileImporter, fast::LabelModifier, fast::ImageRenderer, fast::BoundingBoxNetwork, fast::NeuralNetwork, fast::TextRenderer, fast::ImageClassificationNetwork, fast::SegmentationNetwork, fast::ImageResampler, fast::ImageSharpening, fast::TensorToSegmentation, fast::NonMaximumSuppression, and fast::UltrasoundImageEnhancement.
◆ postExecute()
virtual void fast::ProcessObject::postExecute |
( |
| ) |
|
|
protectedvirtual |
◆ preExecute()
virtual void fast::ProcessObject::preExecute |
( |
| ) |
|
|
protectedvirtual |
◆ setAttributes()
void fast::ProcessObject::setAttributes |
( |
std::vector< std::shared_ptr< Attribute >> |
attributes | ) |
|
◆ setDevice()
◆ setDeviceCriteria()
void fast::ProcessObject::setDeviceCriteria |
( |
uint |
deviceNumber, |
|
|
const DeviceCriteria & |
criteria |
|
) |
| |
◆ setInputConnection() [1/2]
◆ setInputConnection() [2/2]
◆ setInputData() [1/2]
◆ setInputData() [2/2]
◆ setMainDevice()
◆ setMainDeviceCriteria()
void fast::ProcessObject::setMainDeviceCriteria |
( |
const DeviceCriteria & |
citeria | ) |
|
◆ setModified()
void fast::ProcessObject::setModified |
( |
bool |
modified | ) |
|
◆ stopPipeline()
void fast::ProcessObject::stopPipeline |
( |
| ) |
|
◆ update()
void fast::ProcessObject::update |
( |
int |
executeToken = -1 | ) |
|
Do update on this PO, which will trigger update on all connected POs. An optional executeToken can be used to synchronize updating to avoid duplicate execution for the same frames when using streaming. Increment the token for every timestep with a positive value.
- Parameters
-
executeToken | Negative value means that the execute token is disabled. |
◆ updateAndGetOutputData()
template<class DataType >
std::shared_ptr< DataType > fast::ProcessObject::updateAndGetOutputData |
( |
uint |
portID = 0 | ) |
|
◆ validateInputPortExists()
void fast::ProcessObject::validateInputPortExists |
( |
uint |
portID | ) |
|
|
protected |
◆ validateOutputPortExists()
void fast::ProcessObject::validateOutputPortExists |
( |
uint |
portID | ) |
|
|
protected |
◆ waitToFinish()
virtual void fast::ProcessObject::waitToFinish |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ m_frameData
std::unordered_map<std::string, std::string> fast::ProcessObject::m_frameData |
|
protected |
◆ m_lastExecuteToken
int fast::ProcessObject::m_lastExecuteToken = -1 |
|
protected |
◆ m_lastFrame
std::unordered_set<std::string> fast::ProcessObject::m_lastFrame |
|
protected |
◆ m_maximumNrOfFrames
int fast::ProcessObject::m_maximumNrOfFrames = -1 |
|
protected |
◆ mAttributes
std::unordered_map<std::string, std::shared_ptr<Attribute> > fast::ProcessObject::mAttributes |
|
protected |
◆ mDeviceCriteria
◆ mDevices
◆ mInputConnections
◆ mInputDevices
std::unordered_map<uint, std::vector<uint> > fast::ProcessObject::mInputDevices |
|
protected |
◆ mInputPorts
std::unordered_map<uint, bool> fast::ProcessObject::mInputPorts |
|
protected |
◆ mIsModified
bool fast::ProcessObject::mIsModified |
|
protected |
◆ mLastProcessed
◆ mOpenCLPrograms
std::unordered_map<std::string, std::shared_ptr<OpenCLProgram> > fast::ProcessObject::mOpenCLPrograms |
|
protected |
◆ mOutputConnections
std::unordered_map<uint, std::vector<std::weak_ptr<DataChannel> > > fast::ProcessObject::mOutputConnections |
|
protected |
◆ mOutputPorts
std::unordered_set<uint> fast::ProcessObject::mOutputPorts |
|
protected |
◆ mRequiredInputs
std::unordered_map<uint, bool> fast::ProcessObject::mRequiredInputs |
|
protected |
◆ mRuntimeManager
The documentation for this class was generated from the following file: