Fraxinus  22.04
An IGT application
cxUSReconstructInputData.h
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 #ifndef CXUSRECONSTRUCTINPUTDATA_H
12 #define CXUSRECONSTRUCTINPUTDATA_H
13 
14 #include "cxResourceExport.h"
15 
16 #include <vector>
17 #include "cxProbeSector.h"
18 #include "cxData.h"
19 #include "cxTool.h"
20 
21 namespace cx
22 {
23 
24 typedef boost::shared_ptr<class USFrameData> USFrameDataPtr;
25 typedef boost::shared_ptr<class Image> ImagePtr;
26 
32 typedef boost::shared_ptr<class TimedPosition> TimedPositionPtr;
33 
36 class cxResource_EXPORT TimedPosition
37 {
38 public:
39  double mTime;// Should always be in ms
42 };
43 cxResource_EXPORT inline bool operator<(const TimedPosition& lhs, const TimedPosition& rhs)
44 {
45  return lhs.mTime < rhs.mTime;
46 }
47 
48 struct cxResource_EXPORT USReconstructInputData
49 {
50  QString mFilename;
51 
52  USFrameDataPtr mUsRaw;
53  std::vector<TimedPosition> mFrames;
54  std::vector<TimedPosition> mPositions;
55  std::map<double, ToolPositionMetadata> mTrackerRecordedMetadata;
56  std::map<double, ToolPositionMetadata> mReferenceRecordedMetadata;
58  QString mProbeUid;
60 
61  vtkImageDataPtr getMask();
62  bool isValid() const;
63  bool is8bit() const;
64 };
65 
70 }//namespace cx
71 
72 
73 #endif // CXUSRECONSTRUCTINPUTDATA_H
bool operator<(const Landmark &lhs, const Landmark &rhs)
Definition: cxLandmark.cpp:73
std::map< double, ToolPositionMetadata > mTrackerRecordedMetadata
One position with timestamp.
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
boost::shared_ptr< class USFrameData > USFrameDataPtr
std::vector< TimedPosition > mFrames
std::map< double, ToolPositionMetadata > mReferenceRecordedMetadata
Transform3D rMpr
patient registration
std::vector< TimedPosition > mPositions
Utility functions for drawing an US Probe sector.
Definition: cxProbeSector.h:38
QString mFilename
filename used for current data read
vtkSmartPointer< class vtkImageData > vtkImageDataPtr
USFrameDataPtr mUsRaw
All imported US data frames with pointers to each frame.
boost::shared_ptr< class TimedPosition > TimedPositionPtr
Namespace for all CustusX production code.