![]() |
ImFusion SDK 4.3
|
Collection of convenience functions to work with ImFusion Algorithms. More...
Collection of convenience functions to work with ImFusion Algorithms.
Functions | |
| template<typename T> | |
| std::optional< OwningDataList > | execute (const DataList &input, const Properties &properties=Properties(), Progress *progress=nullptr) |
| Convenience function to instantiate, configure and execute an Algorithm. | |
| template<typename T> | |
| std::optional< OwningDataList > | execute (const std::vector< SharedImage * > &input, const Properties &properties=Properties(), Progress *progress=nullptr) |
| Convenience function to instantiate, configure and execute an Algorithm. | |
| template<typename T> | |
| std::optional< OwningDataList > | execute (const std::vector< Image * > &input, const Properties &properties=Properties(), Progress *progress=nullptr) |
| Convenience function to instantiate, configure and execute an Algorithm. | |
| std::optional< OwningDataList > | execute (Algorithm &algorithm, Progress *progress=nullptr) |
| Convenience function to execute a pre-configured algorithm. | |
| std::optional< OwningDataList > | executeBatchedChannels (SharedImageSet &input, std::function< std::optional< OwningDataList >(SharedImageSet *)> func) |
| Helper function to run a function that uses OpenGL on images that have potentially more than 4 channels. | |
| template<typename T> | |
| std::optional< OwningDataList > | executeBatchedChannels (SharedImageSet &input, const Properties &properties=Properties(), Progress *progress=nullptr) |
| Helper function to run an algorithm of type T that uses OpenGL on images that have potentially more than 4 channels. | |
| std::string | parseAlgorithmName (const std::string &name, std::vector< std::string > *categoriesOut=0) |
| Splits a fully qualified algorithm name into category vector and actual algorithm name. | |
| std::vector< AlgorithmFactory::Descriptor > | sortAndAddSeparators (std::vector< AlgorithmFactory::Descriptor > descriptions) |
| Sort the given algorithm descriptions such that: | |
| std::optional< OwningDataList > execute | ( | const DataList & | input, |
| const Properties & | properties = Properties(), | ||
| Progress * | progress = nullptr ) |
Convenience function to instantiate, configure and execute an Algorithm.
execute(DataList{data1, data2, data3}).| input | Input data to instantiate the algorithm with. |
| properties | Configuration to assign to the algorithm prior to execution. |
| progress | Optional pointer to Progress instance to report computation progress. |
| T | Class name of the algorithm to execute, must implement T::createCompatible(). |
| std::optional< OwningDataList > execute | ( | const std::vector< SharedImage * > & | input, |
| const Properties & | properties = Properties(), | ||
| Progress * | progress = nullptr ) |
Convenience function to instantiate, configure and execute an Algorithm.
execute(std::vector<SharedImage*>{si1, si2, si3}).| input | Input images to instantiate the algorithm with. |
| properties | Configuration to assign to the algorithm prior to execution. |
| progress | Optional pointer to Progress instance to report computation progress. |
| T | Class name of the algorithm to execute, must implement T::createCompatible(). |
| std::optional< OwningDataList > execute | ( | const std::vector< Image * > & | input, |
| const Properties & | properties = Properties(), | ||
| Progress * | progress = nullptr ) |
Convenience function to instantiate, configure and execute an Algorithm.
execute(std::vector<Image*>{img1, img2, img3}).| input | Input data to instantiate the algorithm with. |
| properties | Configuration to assign to the algorithm prior to execution. |
| progress | Optional pointer to Progress instance to report computation progress. |
| T | Class name of the algorithm to execute, must implement T::createCompatible(). |
| std::optional< OwningDataList > execute | ( | Algorithm & | algorithm, |
| Progress * | progress = nullptr ) |
| std::optional< OwningDataList > executeBatchedChannels | ( | SharedImageSet & | input, |
| std::function< std::optional< OwningDataList >(SharedImageSet *)> | func ) |
Helper function to run a function that uses OpenGL on images that have potentially more than 4 channels.
The function is assumed to return a new image with the same number of channels as the input, or to work in-place. The input image is split in 4-channels sub-images, on which the algorithm is ran, and the final result is then reassembled.
| std::string parseAlgorithmName | ( | const std::string & | name, |
| std::vector< std::string > * | categoriesOut = 0 ) |
Splits a fully qualified algorithm name into category vector and actual algorithm name.
| name | Fully qualified algorithm name | |
| [out] | categories | Optional output vector containing the names of the categories in hierarchical order |
| std::vector< AlgorithmFactory::Descriptor > sortAndAddSeparators | ( | std::vector< AlgorithmFactory::Descriptor > | descriptions | ) |
Sort the given algorithm descriptions such that: