CustusX
22.04
An IGT application
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
12
#include "
cxUSReconstructInputData.h
"
13
#include "
cxUSFrameData.h
"
14
#include "
cxLogger.h
"
15
16
namespace
cx
17
{
18
vtkImageDataPtr
USReconstructInputData::getMask
()
19
{
20
vtkImageDataPtr
retval =
mProbeDefinition
.
getMask
();
21
return
retval;
22
}
23
24
bool
USReconstructInputData::isValid
()
const
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
36
bool
USReconstructInputData::is8bit
()
const
37
{
38
return
mUsRaw
->is8bit();
39
}
40
41
}
// namespace cx
cx::USReconstructInputData::getMask
vtkImageDataPtr getMask()
Definition:
cxUSReconstructInputData.cpp:18
cx::USReconstructInputData::is8bit
bool is8bit() const
Definition:
cxUSReconstructInputData.cpp:36
cxLogger.h
cx::USReconstructInputData::mFrames
std::vector< TimedPosition > mFrames
Definition:
cxUSReconstructInputData.h:53
cxUSReconstructInputData.h
cxUSFrameData.h
cx::reportWarning
void reportWarning(QString msg)
Definition:
cxLogger.cpp:70
cx::USReconstructInputData::mProbeDefinition
ProbeSector mProbeDefinition
Definition:
cxUSReconstructInputData.h:57
cx::USReconstructInputData::mPositions
std::vector< TimedPosition > mPositions
Definition:
cxUSReconstructInputData.h:54
cx::USReconstructInputData::isValid
bool isValid() const
Definition:
cxUSReconstructInputData.cpp:24
cx::ProbeSector::getMask
vtkImageDataPtr getMask()
Definition:
cxProbeSector.cpp:131
vtkImageDataPtr
vtkSmartPointer< class vtkImageData > vtkImageDataPtr
Definition:
cxVideoConnectionWidget.h:30
cx::USReconstructInputData::mUsRaw
USFrameDataPtr mUsRaw
All imported US data frames with pointers to each frame.
Definition:
cxUSReconstructInputData.h:52
cx
Namespace for all CustusX production code.
Definition:
cx_dev_group_definitions.h:13
CX
source
resource
core
usReconstructionTypes
cxUSReconstructInputData.cpp
Generated on Fri Sep 2 2022 11:59:07 for CustusX by
1.8.11