ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkTrxParcellationLabeler.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 itkTrxParcellationLabeler_h
19#define itkTrxParcellationLabeler_h
20
21#include "TractographyTRXExport.h"
22
23#include "itkObject.h"
24#include "itkObjectFactory.h"
26
27#include <map>
28#include <string>
29#include <vector>
30
31namespace itk
32{
79class TractographyTRX_EXPORT TrxParcellationLabeler : public Object
80{
81public:
82 ITK_DISALLOW_COPY_AND_MOVE(TrxParcellationLabeler);
83
88
89 itkNewMacro(Self);
90 itkOverrideGetNameOfClassMacro(TrxParcellationLabeler);
91
94 {
96 std::string niftiPath;
102 std::string labelFilePath;
107 std::string groupPrefix;
108 };
109
111 void
113
115 void
117
127 void
128 SetInputFileName(const std::string & filename);
129
130 const std::string &
132
136 void
137 SetOutputFileName(const std::string & filename);
138
139 const std::string &
141
143 size_t
145
147 size_t
149
158 itkSetMacro(DilationRadius, unsigned int);
159 itkGetConstMacro(DilationRadius, unsigned int);
160
166 itkSetMacro(MaxDpvBytes, size_t);
167 itkGetConstMacro(MaxDpvBytes, size_t);
168
170 void
172
173protected:
175 ~TrxParcellationLabeler() override = default;
176
177 void
178 PrintSelf(std::ostream & os, Indent indent) const override;
179
180private:
182 std::string m_InputFileName;
183 std::vector<ParcellationSpec> m_Parcellations;
184 std::string m_OutputFileName;
185 unsigned int m_DilationRadius{ 0 };
186 size_t m_MaxDpvBytes{ 512ULL * 1024ULL * 1024ULL };
188 size_t m_FinalFileBytes{ 0 };
189};
190
191} // namespace itk
192
193#endif
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
void SetInput(TrxStreamlineData::ConstPointer input)
void AddParcellation(const ParcellationSpec &spec)
TrxStreamlineData::ConstPointer m_Input
SmartPointer< const Self > ConstPointer
const std::string & GetInputFileName() const
void SetOutputFileName(const std::string &filename)
vcl_size_t GetFinalFileBytes() const
void SetInputFileName(const std::string &filename)
~TrxParcellationLabeler() override=default
const std::string & GetOutputFileName() const
void PrintSelf(std::ostream &os, Indent indent) const override
vcl_size_t GetPreGroupFileBytes() const
std::vector< ParcellationSpec > m_Parcellations
SmartPointer< const Self > ConstPointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)