Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxUSReconstructInputData.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
13 #include "cxUSFrameData.h"
14 #include "cxLogger.h"
15 
16 namespace cx
17 {
19 {
21  return retval;
22 }
23 
25 {
26  if (mFrames.empty() || !mUsRaw || mPositions.empty())
27  return false;
28  if(mUsRaw->is4D())
29  {
30  reportWarning("US reconstructer do not handle 4D US data");
31  return false;
32  }
33  return true;
34 }
35 
37 {
38  return mUsRaw->is8bit();
39 }
40 
41 } // namespace cx
std::vector< TimedPosition > mFrames
void reportWarning(QString msg)
Definition: cxLogger.cpp:70
std::vector< TimedPosition > mPositions
vtkImageDataPtr getMask()
vtkSmartPointer< class vtkImageData > vtkImageDataPtr
USFrameDataPtr mUsRaw
All imported US data frames with pointers to each frame.
Namespace for all CustusX production code.