29 mitk::USImageVideoSource::Pointer usSource = mitk::USImageVideoSource::New();
31 usSource->SetVideoFileInput(videoFilePath);
32 MITK_TEST_CONDITION_REQUIRED(usSource->GetIsVideoReady(),
"USImageVideoSource should have isVideoReady flag set after opening a Video File");
33 mitk::Image::Pointer frame;
34 frame = usSource->GetNextImage()[0];
35 MITK_TEST_CONDITION_REQUIRED(frame.IsNotNull(),
"First frame should not be null.");
36 frame = usSource->GetNextImage()[0];
37 MITK_TEST_CONDITION_REQUIRED(frame.IsNotNull(),
"Second frame should not be null.");
38 frame = usSource->GetNextImage()[0];
39 MITK_TEST_CONDITION_REQUIRED(frame.IsNotNull(),
"Third frame should not be null.");
40 frame = usSource->GetNextImage()[0];
41 MITK_TEST_CONDITION_REQUIRED(frame.IsNotNull(),
"Fourth frame should not be null.");
42 frame = usSource->GetNextImage()[0];
43 MITK_TEST_CONDITION_REQUIRED(frame.IsNotNull(),
"Fifth frame should not be null.");