|
|
| CropAroundVertebraeOperation (vec3i cropSize=vec3i(96, 128, 96), vec3 cropSpacing=vec3::Ones(), bool floatOutputLabels=false) |
| |
| void | process (ML::DataItem &item) override |
| | Main function that processes a DataItem in-place, may throw OperationException The data to be processed is determined by the active fields (if set) and the processing policy otherwise (if set), otherwise all fields are processed.
|
| |
|
| Operation (std::string name, ProcessingPolicy processingPolicy) |
| | Derived classes must specify a name and whether, by default, the operation should also be applied to label maps.
|
| |
| virtual std::shared_ptr< SharedImageSet > | process (std::shared_ptr< SharedImageSet > input) |
| | Utility function to directly apply an operation on a SharedImageSet irrespective of active fields and processing policy.
|
| |
| virtual std::shared_ptr< KeypointSet > | process (std::shared_ptr< KeypointSet > input) |
| | Utility function to directly apply an operation on a set of KeypointSet irrespective of active fields and processing policy.
|
| |
| virtual std::shared_ptr< BoundingBoxSet > | process (std::shared_ptr< BoundingBoxSet > input) |
| | Utility function to directly apply an operation on a set of BoundingBoxSet irrespective of active fields and processing policy.
|
| |
| virtual std::unique_ptr< SharedImageSet > | process (std::unique_ptr< SharedImageSet > input) final |
| | Utility function with unique_ptr as input and output to avoid breaking changes (must not be overridden)
|
| |
| void | addTemporaryPreProcessHook (PreProcessHook hook) |
| | Add a temporary hook that will only be active for the next process call and then automatically removed after the DataItem is processed.
|
| |
| void | addTemporaryPostProcessHook (PostProcessHook hook) |
| | Add a temporary hook that will only be active for the next process call and then automatically removed after the DataItem is processed.
|
| |
|
virtual bool | checkRequiredItemsTypes (const DataItem &item) const |
| | Checks if the data item holds fields with types required by the operation.
|
| |
|
const std::string & | name () const |
| | Returns the name of the operation.
|
| |
| virtual bool | configure (const Properties &properties) |
| | Configure an Operation with the given properties and return whether the configuration was successful.
|
| |
| virtual Properties | configuration () const |
| | Return the Operation configuration.
|
| |
|
void | setActiveFields (std::optional< std::unordered_set< std::string > > activeFields) |
| |
|
std::optional< std::unordered_set< std::string > > | activeFields () const |
| |
|
virtual void | setProcessingPolicy (ProcessingPolicy policy) |
| |
|
ProcessingPolicy | processingPolicy () const |
| |
|
std::optional< uint32_t > | seed () const |
| | Return the current seed (if there is one)
|
| |
| virtual void | seedRandomEngine (uint32_t seed) |
| | Set a seed for the random generator.
|
| |
|
ML::ComputingDevice | computingDevice () const |
| | Get the computing device.
|
| |
| virtual void | setComputingDevice (ML::ComputingDevice device) |
| | Set the computing device selection strategy.
|
| |
|
void | configFailed (const std::string &missingParam) const |
| | Helper function to show an error message due to a bad configuration.
|
| |
|
void | logDeprecatedParam (const std::string &oldName, const std::string &newName) const |
| | Helper function to print a warning because of a deprecated parameter has been specified.
|
| |
|
bool | errorOnUnexpectedBehaviour () const |
| | Get the policy whether to treat unexpected behavior warnings as errors.
|
| |
| virtual void | setErrorOnUnexpectedBehaviour (bool error) |
| | Treat unexpected behavior warnings as errors.
|
| |
| void | registerParameter (ParameterBase *param) |
| | Register a parameter so that the operation knows about it, and can automatically configure it (unless it has been marked as manually configured parameter via the Operation::setManuallyConfiguredParameters method).
|
| |
|
std::vector< ParameterBase * > | parameters () const |
| | Return the list of registered parameters.
|
| |
| virtual bool | doesNotModifyInput () const |
| | Returns whether the operation is guaranteed to not modify its input element, either because it computes its output out-of-place or because it is a no-op.
|
| |
| virtual bool | supportsInversion () const |
| | Whether the operation supports inversion. Returns False unless the operation derives from InvertibleOperation.
|
| |
|
const std::string & | recordIdentifier () const |
| | Get the operation's record identifier.
|
| |
| virtual void | setRecordIdentifier (const std::string &recordIdentifier) |
| | Set the operation's record identifier.
|
| |
|
const std::string & | logDomain () const |
| | Log domain for AdvancedParameter.
|
| |
| std::optional< std::unordered_set< std::string > > | selectedFields (const DataItem &item) |
| | Get the fields on which the operation will be applied.
|
| |
|
|
ML::OpParam< vec3i > | m_cropSize = {"crop_size", vec3i(96, 128, 96), this, ML::ParamRequired::No} |
| |
|
ML::OpParam< vec3 > | m_cropSpacing = {"crop_spacing", vec3(1.0, 1.0, 1.0), this, ML::ParamRequired::No} |
| |
|
ML::OpParam< bool > | m_floatOutputLabels = {"float_output_labels", false, this, ML::ParamRequired::No} |
| |
|
ML::OpParam< bool > | m_paintSpinalCord = {"paint_spinal_cord", false, this, ML::ParamRequired::No} |
| |
|
ML::OpParam< bool > | m_estimateKeypoints = {"estimate_keypoints", false, this, ML::ParamRequired::No} |
| |
|
ML::OpParam< bool > | m_mergeKeypointChannels = {"merge_keypoint_channels", true, this, ML::ParamRequired::No} |
| |
|
ML::OpParam< bool > | m_bodyKeypointOnly = {"body_keypoint_only", false, this, ML::ParamRequired::No} |
| |
|
ML::OpParam< bool > | m_centerOnBody = {"center_on_body", false, this, ML::ParamRequired::No} |
| |
|
ML::OpParam< float > | m_keypointJitterStd = {"keypoint_jitter_std", 0.0, this, ML::ParamRequired::No} |
| |
|
ML::OpParam< bool > | m_reorder = {"reorder", true, this, ML::ParamRequired::No} |
| | Whether vertebra should have value 1, and spinal coord value 2. This should only be false if m_floatOutputLabels is false.
|
| |
| ML::OpParam< bool > | m_alignToVoxelGrid |
| |