VTK-m  2.0
FilterBanks.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 
11 #ifndef vtk_m_worklet_wavelets_filterbanks_h
12 #define vtk_m_worklet_wavelets_filterbanks_h
13 
14 #include <vtkm/Types.h>
15 
16 namespace vtkm
17 {
18 namespace worklet
19 {
20 
21 namespace wavelets
22 {
23 
24 const vtkm::Float64 hm4_44[9] = {
25  /* From VAPoR
26  0.037828455507264,
27  -0.023849465019557,
28  -0.110624404418437,
29  0.377402855612831,
30  0.852698679008894,
31  0.377402855612831,
32  -0.110624404418437,
33  -0.023849465019557,
34  0.037828455507264 */
35 
36  /* From http://wavelets.pybytes.com/wavelet/bior4.4/ and its git repo:
37  * https://github.com/nigma/pywt/blob/035e1fa14c2cd70ca270da20b1523e834a7ae635/src/wavelets_coeffs.template.h */
38  0.03782845550726404, -0.023849465019556843, -0.11062440441843718,
39  0.37740285561283066, 0.85269867900889385, 0.37740285561283066,
40  -0.11062440441843718, -0.023849465019556843, 0.03782845550726404
41 };
42 
43 const vtkm::Float64 h4[9] = {
44  /* From VAPoR
45  0.0,
46  -0.064538882628697,
47  -0.040689417609164,
48  0.418092273221617,
49  0.788485616405583,
50  0.418092273221617,
51  -0.0406894176091641,
52  -0.0645388826286971,
53  0.0 */
54 
55  /* From http://wavelets.pybytes.com/wavelet/bior4.4/ and its git repo:
56  * https://github.com/nigma/pywt/blob/035e1fa14c2cd70ca270da20b1523e834a7ae635/src/wavelets_coeffs.template.h */
57  0.0,
58  -0.064538882628697058,
59  -0.040689417609164058,
60  0.41809227322161724,
61  0.7884856164055829,
62  0.41809227322161724,
63  -0.040689417609164058,
64  -0.064538882628697058,
65  0.0
66 };
67 
68 const vtkm::Float64 hm2_22[6] = { -0.1767766952966368811002110905262,
69  0.3535533905932737622004221810524,
70  1.0606601717798212866012665431573,
71  0.3535533905932737622004221810524,
72  -0.1767766952966368811002110905262 };
73 
74 const vtkm::Float64 h2[18] = { 0.0,
75  0.0,
76  0.0,
77  0.0,
78  0.0,
79  0.0,
80  0.0,
81  0.3535533905932737622004221810524,
82  0.7071067811865475244008443621048,
83  0.3535533905932737622004221810524,
84  0.0,
85  0.0,
86  0.0,
87  0.0,
88  0.0,
89  0.0,
90  0.0,
91  0.0 };
92 
93 const vtkm::Float64 hm1_11[2] = { 0.70710678118654752440084436210,
94  0.70710678118654752440084436210 };
95 
96 const vtkm::Float64 h1[10] = {
97  0.0, 0.0, 0.0, 0.0, 0.70710678118654752440084436210, 0.70710678118654752440084436210,
98  0.0, 0.0, 0.0, 0.0
99 };
100 
101 const vtkm::Float64 hm3_33[8] = {
102  0.0662912607362388304125791589473, -0.1988737822087164912377374768420,
103  -0.1546796083845572709626847042104, 0.9943689110435824561886873842099,
104  0.9943689110435824561886873842099, -0.1546796083845572709626847042104,
105  -0.1988737822087164912377374768420, 0.0662912607362388304125791589473
106 };
107 
108 const vtkm::Float64 h3[20] = { 0.0,
109  0.0,
110  0.0,
111  0.0,
112  0.0,
113  0.0,
114  0.0,
115  0.0,
116  0.1767766952966368811002110905262,
117  0.5303300858899106433006332715786,
118  0.5303300858899106433006332715786,
119  0.1767766952966368811002110905262,
120  0.0,
121  0.0,
122  0.0,
123  0.0,
124  0.0,
125  0.0,
126  0.0,
127  0.0 };
128 };
129 }
130 }
131 
132 #endif
vtkm::worklet::wavelets::h2
const vtkm::Float64 h2[18]
Definition: FilterBanks.h:74
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
Types.h
vtkm::worklet::wavelets::h4
const vtkm::Float64 h4[9]
Definition: FilterBanks.h:43
vtkm::worklet::wavelets::hm4_44
const vtkm::Float64 hm4_44[9]
Definition: FilterBanks.h:24
vtkm::worklet::wavelets::h3
const vtkm::Float64 h3[20]
Definition: FilterBanks.h:108
vtkm::worklet::wavelets::h1
const vtkm::Float64 h1[10]
Definition: FilterBanks.h:96
vtkm::worklet::wavelets::hm1_11
const vtkm::Float64 hm1_11[2]
Definition: FilterBanks.h:93
vtkm::Float64
double Float64
Definition: Types.h:155
vtkm::worklet::wavelets::hm3_33
const vtkm::Float64 hm3_33[8]
Definition: FilterBanks.h:101
vtkm::worklet::wavelets::hm2_22
const vtkm::Float64 hm2_22[6]
Definition: FilterBanks.h:68