ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkTrxGroupTdiMapper.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkTrxGroupTdiMapper_h
19#define itkTrxGroupTdiMapper_h
20
21#include "TractographyTRXExport.h"
22
23#include "itkImage.h"
24#include "itkObject.h"
25#include "itkObjectFactory.h"
27
28#include <optional>
29#include <string>
30#include <vector>
31
32namespace itk
33{
64class TractographyTRX_EXPORT TrxGroupTdiMapper : public Object
65{
66public:
67 ITK_DISALLOW_COPY_AND_MOVE(TrxGroupTdiMapper);
68
73
74 itkNewMacro(Self);
75 itkOverrideGetNameOfClassMacro(TrxGroupTdiMapper);
76
78
79 enum class VoxelStatistic
80 {
83 };
84
89
101
102 void
103 SetInputFileName(const std::string & filename);
104
105 const std::string &
107
108 void
109 SetGroupName(const std::string & groupName);
110
111 const std::string &
113
114 void
115 SetReferenceImageFileName(const std::string & filename);
116
117 const std::string &
119
120 void
122
124 GetInput() const;
125
126 void
127 SetOptions(const Options & options);
128
129 const Options &
130 GetOptions() const;
131
133 void
134 SetSelectedStreamlineIds(const std::vector<uint32_t> & ids);
135
136 const std::vector<uint32_t> &
138
141
142 const OutputImageType *
143 GetOutput() const;
144
146 void
148
151 Compute(const std::string & inputTrxFileName,
152 const std::string & groupName,
153 const std::string & referenceImageFileName);
154
157 Compute(const std::string & inputTrxFileName,
158 const std::string & groupName,
159 const std::string & referenceImageFileName,
160 const Options & options);
161
162protected:
163 TrxGroupTdiMapper() = default;
164 ~TrxGroupTdiMapper() override = default;
165
166 void
167 PrintSelf(std::ostream & os, Indent indent) const override;
168
169private:
171 std::string m_InputFileName;
172 std::string m_GroupName;
176 std::vector<uint32_t> m_SelectedStreamlineIds;
178};
179} // namespace itk
180
181#endif
Templated n-dimensional image class.
Definition itkImage.h:89
SmartPointer< Self > Pointer
Definition itkImage.h:96
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
void SetReferenceImageFileName(const std::string &filename)
const std::string & GetGroupName() const
void SetSelectedStreamlineIds(const std::vector< uint32_t > &ids)
void SetInput(TrxStreamlineData::ConstPointer input)
void SetInputFileName(const std::string &filename)
Image< float, 3 > OutputImageType
SmartPointer< Self > Pointer
OutputImageType::Pointer m_Output
static OutputImageType::Pointer Compute(const std::string &inputTrxFileName, const std::string &groupName, const std::string &referenceImageFileName)
const std::string & GetInputFileName() const
const std::string & GetReferenceImageFileName() const
const Options & GetOptions() const
const OutputImageType * GetOutput() const
void SetOptions(const Options &options)
TrxStreamlineData::ConstPointer GetInput() const
~TrxGroupTdiMapper() override=default
SmartPointer< const Self > ConstPointer
std::vector< uint32_t > m_SelectedStreamlineIds
TrxStreamlineData::ConstPointer m_Input
OutputImageType * GetOutput()
const std::vector< uint32_t > & GetSelectedStreamlineIds() const
void SetGroupName(const std::string &groupName)
static OutputImageType::Pointer Compute(const std::string &inputTrxFileName, const std::string &groupName, const std::string &referenceImageFileName, const Options &options)
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
std::optional< std::string > weightField