Commit 2eebdc9d authored by Floris Berendsen's avatar Floris Berendsen
Browse files

BUG: need explicit ResultImagePixelType for MonolithicElastixComponent

parent 9dc92718
......@@ -159,13 +159,17 @@ TEST_F( ElastixComponentTest, ImagesOnly )
// Update call on the writers triggers SuperElastix to configure and execute
EXPECT_NO_THROW( resultImageWriter->Update() );
}
TEST_F( ElastixComponentTest, MonolithicElastixTransformix )
TEST_F(ElastixComponentTest, MonolithicElastixTransformix)
{
/** make example blueprint configuration */
blueprint = BlueprintPointer( new Blueprint() );
blueprint->SetComponent( "RegistrationMethod", { { "NameOfClass", { "MonolithicElastixComponent" } },
{ "RegistrationSettings", { "rigid" } }, { "MaximumNumberOfIterations", { "2" } } } );
blueprint = BlueprintPointer(new Blueprint());
blueprint->SetComponent("RegistrationMethod", { { "NameOfClass", { "MonolithicElastixComponent" } },
{ "RegistrationSettings", { "rigid" } }, { "MaximumNumberOfIterations", { "2" } },
{"Dimensionality", { "2" } },
{ "PixelType", { "float" } },
{ "ResultImagePixelType", { "float" } }
});
blueprint->SetComponent( "TransformDisplacementField", { { "NameOfClass", { "MonolithicTransformixComponent" } } } );
blueprint->SetComponent( "FixedImageSource", { { "NameOfClass", { "ItkImageSourceFixedComponent" } }, { "Dimensionality", { "2" } } } );
......
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