TTK
Loading...
Searching...
No Matches
ttkMergeTreeAutoencoderUtils.h
Go to the documentation of this file.
1
7
8#pragma once
9
10#include <MergeTreeTorchUtils.h>
12#include <ttkUtils.h>
13
14#include <vtkMultiBlockDataSet.h>
15
16#ifdef TTK_ENABLE_TORCH
17namespace ttk {
18 namespace wae {
41 void makeOneOutput(
43 vtkUnstructuredGrid *treeNodes,
44 std::vector<int> &treeNodeCorr,
45 vtkDataSet *treeSegmentation,
48 vtkSmartPointer<vtkDataSet> &vtkOutputSegmentation,
49 unsigned int treeID,
50 std::vector<std::tuple<std::string, std::vector<int>>> &customIntArrays,
51 std::vector<std::tuple<std::string, std::vector<double>>>
52 &customDoubleArrays,
53 bool outputSegmentation,
54 double mixtureCoefficient,
55 bool isPersistenceDiagram,
56 bool convertToDiagram,
57 int debugLevel);
58
77 void makeManyOutput(
78 std::vector<ttk::ftm::MergeTree<float> *> &trees,
79 std::vector<vtkUnstructuredGrid *> &treesNodesT,
80 std::vector<std::vector<int>> &treesNodeCorr,
81 std::vector<vtkDataSet *> &treesSegmentationT,
83 std::vector<std::vector<std::tuple<std::string, std::vector<int>>>>
84 &customIntArrays,
85 std::vector<std::vector<std::tuple<std::string, std::vector<double>>>>
86 &customDoubleArrays,
87 double mixtureCoefficient,
88 bool isPersistenceDiagram,
89 bool convertToDiagram,
90 int debugLevel);
91
109 void makeManyOutput(
110 std::vector<ttk::ftm::MergeTree<float> *> &trees,
111 std::vector<vtkUnstructuredGrid *> &treesNodesT,
112 std::vector<std::vector<int>> &treesNodeCorr,
114 std::vector<std::vector<std::tuple<std::string, std::vector<int>>>>
115 &customIntArrays,
116 std::vector<std::vector<std::tuple<std::string, std::vector<double>>>>
117 &customDoubleArrays,
118 double mixtureCoefficient,
119 bool isPersistenceDiagram,
120 bool convertToDiagram,
121 int debugLevel);
122
137 void makeManyOutput(
138 std::vector<ttk::ftm::MergeTree<float> *> &trees,
140 std::vector<std::vector<std::tuple<std::string, std::vector<int>>>>
141 &customIntArrays,
142 std::vector<std::vector<std::tuple<std::string, std::vector<double>>>>
143 &customDoubleArrays,
144 double mixtureCoefficient,
145 bool isPersistenceDiagram,
146 bool convertToDiagram,
147 int debugLevel);
148
161 void makeManyOutput(std::vector<ttk::ftm::MergeTree<float> *> &trees,
163 double mixtureCoefficient,
164 bool isPersistenceDiagram,
165 bool convertToDiagram,
166 int debugLevel);
167
196 void computeTrackingInformation(
197 std::vector<mtu::TorchMergeTree<float>> &origins,
198 std::vector<mtu::TorchMergeTree<float>> &originsPrime,
199 std::vector<std::vector<ttk::ftm::idNode>> &originsMatchingVectorT,
200 std::vector<std::vector<ttk::ftm::idNode>> &invOriginsMatchingVectorT,
201 bool isPersistenceDiagram,
202 std::vector<std::vector<ttk::ftm::idNode>> &originsMatchingVector,
203 std::vector<std::vector<double>> &originsPersPercent,
204 std::vector<std::vector<double>> &originsPersDiff,
205 std::vector<double> &originPersPercent,
206 std::vector<double> &originPersDiff,
207 std::vector<int> &originPersistenceOrder);
208
235 void computeCustomArrays(
236 std::vector<std::vector<mtu::TorchMergeTree<float>>> &recs,
237 std::vector<std::vector<double>> &persCorrelationMatrix,
238 std::vector<std::vector<std::vector<ttk::ftm::idNode>>>
239 &invDataMatchingVectorT,
240 std::vector<std::vector<ttk::ftm::idNode>> &invReconstMatchingVectorT,
241 std::vector<std::vector<ttk::ftm::idNode>> &originsMatchingVector,
242 std::vector<std::vector<ttk::ftm::idNode>> &originsMatchingVectorT,
243 std::vector<std::vector<double>> &originsPersPercent,
244 std::vector<std::vector<double>> &originPersDiff,
245 std::vector<int> &originPersistenceOrder,
246 unsigned int l,
247 unsigned int lShift,
248 std::vector<std::vector<std::tuple<std::string, std::vector<int>>>>
249 &customIntArrays,
250 std::vector<std::vector<std::tuple<std::string, std::vector<double>>>>
251 &customDoubleArrays);
252 } // namespace wae
253} // namespace ttk
254#endif
The Topology ToolKit.