File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Modules/Core/Common/include Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -920,6 +920,20 @@ class ITKCommon_EXPORT ProcessObject : public Object
920920 return static_cast <uint32_t >(temp);
921921 };
922922
923+
924+ /* * Sets the required number of outputs, and creates each of them by MakeOutput. */
925+ template <typename TSourceObject>
926+ static void
927+ MakeRequiredOutputs (TSourceObject & sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs)
928+ {
929+ sourceObject.ProcessObject ::SetNumberOfRequiredOutputs (numberOfRequiredOutputs);
930+
931+ for (unsigned int i{}; i < numberOfRequiredOutputs; ++i)
932+ {
933+ sourceObject.ProcessObject ::SetNthOutput (i, sourceObject.TSourceObject ::MakeOutput (i));
934+ }
935+ }
936+
923937 /* * These ivars are made protected so filters like itkStreamingImageFilter
924938 * can access them directly. */
925939
You can’t perform that action at this time.
0 commit comments