Commit 73121b3b authored by Floris Berendsen's avatar Floris Berendsen
Browse files

ENH: updated elastix part with Controller Component

parent fceddcf6
......@@ -382,6 +382,8 @@ TEST_F(WBIRDemoTest, elastix_BS_NCC)
component3Parameters["NameOfClass"] = { "ItkImageSinkComponent" };
blueprint->AddComponent("ResultImageSink", component3Parameters);
blueprint->AddComponent("Controller", { { "NameOfClass", { "RegistrationControllerComponent" } } });
ParameterMapType connection1Parameters;
//optionally, tie properties to connection to avoid ambiguities
//connection1Parameters["NameOfInterface"] = { "itkImageFixedInterface" };
......@@ -397,6 +399,12 @@ TEST_F(WBIRDemoTest, elastix_BS_NCC)
//connection3Parameters["NameOfInterface"] = { "GetItkImageInterface" };
blueprint->AddConnection("RegistrationMethod", "ResultImageSink", connection3Parameters);
blueprint->AddConnection("RegistrationMethod", "Controller", { {} }); //RunRegistrationInterface
//blueprint->AddConnection("Transformix", "Controller", { {} }); //ReconnectTransformInterface
blueprint->AddConnection("ResultImageSink", "Controller", { {} }); //AfterRegistrationInterface
//blueprint->AddConnection("ResultDisplacementFieldSink", "Controller", { {} }); //AfterRegistrationInterface
blueprint->WriteBlueprint("elastix_BS_NCC.dot");
// Instantiate SuperElastix
......@@ -477,6 +485,8 @@ TEST_F(WBIRDemoTest, elastix_BS_MSD)
component3Parameters["NameOfClass"] = { "ItkImageSinkComponent" };
blueprint->AddComponent("ResultImageSink", component3Parameters);
blueprint->AddComponent("Controller", { { "NameOfClass", { "RegistrationControllerComponent" } } });
ParameterMapType connection1Parameters;
//optionally, tie properties to connection to avoid ambiguities
//connection1Parameters["NameOfInterface"] = { "itkImageFixedInterface" };
......@@ -492,6 +502,11 @@ TEST_F(WBIRDemoTest, elastix_BS_MSD)
//connection3Parameters["NameOfInterface"] = { "GetItkImageInterface" };
blueprint->AddConnection("RegistrationMethod", "ResultImageSink", connection3Parameters);
blueprint->AddConnection("RegistrationMethod", "Controller", { {} }); //RunRegistrationInterface
//blueprint->AddConnection("Transformix", "Controller", { {} }); //ReconnectTransformInterface
blueprint->AddConnection("ResultImageSink", "Controller", { {} }); //AfterRegistrationInterface
//blueprint->AddConnection("ResultDisplacementFieldSink", "Controller", { {} }); //AfterRegistrationInterface
blueprint->WriteBlueprint("elastix_BS_MSD.dot");
// Instantiate SuperElastix
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment