76 mitk::USVideoDevice::Pointer videoDevice = mitk::USVideoDevice::New(videoFilePath,
"Manufacturer",
"Model");
77 TestUSFilter::Pointer filter = TestUSFilter::New();
78 videoDevice->Update();
79 filter->SetInput(videoDevice->GetOutput());
81 MITK_TEST_CONDITION_REQUIRED(videoDevice.IsNotNull(),
"videoDevice should not be null after instantiation");
84 mitk::USImage::Pointer result = filter->GetOutput(0);
85 MITK_TEST_CONDITION_REQUIRED(result.IsNotNull(),
"resulting images should not be null");
86 std::string model = result->GetMetadata()->GetDeviceModel();
87 MITK_TEST_CONDITION_REQUIRED(model.compare(
"Model") == 0 ,
"Resulting images should have their metadata set correctly");