diff --git a/Modules/ToFHardware/Testing/mitkToFCameraPMDCamBoardDeviceTest.cpp b/Modules/ToFHardware/Testing/mitkToFCameraPMDCamBoardDeviceTest.cpp index 225819454e..b373361df2 100644 --- a/Modules/ToFHardware/Testing/mitkToFCameraPMDCamBoardDeviceTest.cpp +++ b/Modules/ToFHardware/Testing/mitkToFCameraPMDCamBoardDeviceTest.cpp @@ -1,63 +1,63 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #include #include /**Documentation * test for the class "ToFCameraPMDCamBoardDevice". */ int mitkToFCameraPMDCamBoardDeviceTest(int /* argc */, char* /*argv*/[]) { MITK_TEST_BEGIN("ToFCameraPMDCamBoardDevice"); mitk::ToFCameraPMDCamBoardDevice::Pointer tofCameraPMDCamBoardDevice = mitk::ToFCameraPMDCamBoardDevice::New(); // No hardware attached for automatic testing -> test correct error handling MITK_TEST_CONDITION_REQUIRED(tofCameraPMDCamBoardDevice->ConnectCamera(), "Test ConnectCamera()"); MITK_TEST_CONDITION_REQUIRED(!tofCameraPMDCamBoardDevice->IsCameraActive(), "Test IsCameraActive() before StartCamera()"); MITK_TEST_OUTPUT(<<"Call StartCamera()"); tofCameraPMDCamBoardDevice->StartCamera(); MITK_TEST_CONDITION_REQUIRED(tofCameraPMDCamBoardDevice->IsCameraActive(), "Test IsCameraActive() after StartCamera()"); MITK_TEST_OUTPUT(<<"Call UpdateCamera()"); tofCameraPMDCamBoardDevice->UpdateCamera(); int numberOfPixels = tofCameraPMDCamBoardDevice->GetCaptureWidth()*tofCameraPMDCamBoardDevice->GetCaptureHeight(); MITK_INFO<GetDistances(distances,imageSequence); tofCameraPMDCamBoardDevice->GetAmplitudes(amplitudes,imageSequence); tofCameraPMDCamBoardDevice->GetIntensities(intensities,imageSequence); - tofCameraPMDCamBoardDevice->GetAllImages(distances,amplitudes,intensities,sourceData,requiredImageSequence,imageSequence); + tofCameraPMDCamBoardDevice->GetAllImages(distances,amplitudes,intensities,sourceData,requiredImageSequence,imageSequence, 0); MITK_TEST_CONDITION_REQUIRED(tofCameraPMDCamBoardDevice->IsCameraActive(), "Test IsCameraActive() before StopCamera()"); MITK_TEST_OUTPUT(<<"Call StopCamera()"); tofCameraPMDCamBoardDevice->StopCamera(); MITK_TEST_CONDITION_REQUIRED(!tofCameraPMDCamBoardDevice->IsCameraActive(), "Test IsCameraActive() after StopCamera()"); MITK_TEST_CONDITION_REQUIRED(tofCameraPMDCamBoardDevice->DisconnectCamera(), "Test DisonnectCamera()"); delete[] distances; delete[] amplitudes; delete[] intensities; delete[] sourceData; MITK_TEST_END(); }