mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
put wavelet filter banks into a separate file
This commit is contained in:
parent
632a5946e1
commit
72eb2fff70
@ -23,7 +23,6 @@ set(headers
|
||||
WorkletMapField.h
|
||||
DispatcherMapTopology.h
|
||||
WorkletMapTopology.h
|
||||
|
||||
AverageByKey.h
|
||||
CellAverage.h
|
||||
Clip.h
|
||||
@ -46,6 +45,7 @@ set(headers
|
||||
Threshold.h
|
||||
VertexClustering.h
|
||||
Wavelets.h
|
||||
WaveletsFilterBanks.h
|
||||
)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -23,38 +23,13 @@
|
||||
|
||||
#include <vtkm/worklet/WorkletMapField.h>
|
||||
|
||||
#include <vtkm/worklet/WaveletsFilterBanks.h>
|
||||
|
||||
#include <vtkm/Math.h>
|
||||
|
||||
namespace vtkm {
|
||||
namespace worklet {
|
||||
|
||||
namespace internal{
|
||||
|
||||
const vtkm::Float64 hm4_44[9] = {
|
||||
0.037828455507264,
|
||||
-0.023849465019557,
|
||||
-0.110624404418437,
|
||||
0.377402855612831,
|
||||
0.852698679008894,
|
||||
0.377402855612831,
|
||||
-0.110624404418437,
|
||||
-0.023849465019557,
|
||||
0.037828455507264
|
||||
};
|
||||
|
||||
const vtkm::Float64 h4[9] = {
|
||||
0.0,
|
||||
-0.064538882628697,
|
||||
-0.040689417609164,
|
||||
0.418092273221617,
|
||||
0.788485616405583,
|
||||
0.418092273221617,
|
||||
-0.0406894176091641,
|
||||
-0.0645388826286971,
|
||||
0.0
|
||||
};
|
||||
}
|
||||
|
||||
class Wavelets
|
||||
{
|
||||
public:
|
||||
|
58
vtkm/worklet/WaveletsFilterBanks.h
Normal file
58
vtkm/worklet/WaveletsFilterBanks.h
Normal file
@ -0,0 +1,58 @@
|
||||
//=============================================================================
|
||||
//
|
||||
// Copyright (c) Kitware, Inc.
|
||||
// All rights reserved.
|
||||
// See LICENSE.txt for details.
|
||||
//
|
||||
// This software is distributed WITHOUT ANY WARRANTY; without even
|
||||
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
// PURPOSE. See the above copyright notice for more information.
|
||||
//
|
||||
// Copyright 2015 Sandia Corporation.
|
||||
// Copyright 2015 UT-Battelle, LLC.
|
||||
// Copyright 2015 Los Alamos National Security.
|
||||
//
|
||||
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
|
||||
// the U.S. Government retains certain rights in this software.
|
||||
// Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
|
||||
// Laboratory (LANL), the U.S. Government retains certain rights in
|
||||
// this software.
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
#include <vtkm/Types.h>
|
||||
|
||||
namespace vtkm {
|
||||
namespace worklet {
|
||||
|
||||
namespace internal {
|
||||
|
||||
const vtkm::Float64 hm4_44[9] = {
|
||||
0.037828455507264,
|
||||
-0.023849465019557,
|
||||
-0.110624404418437,
|
||||
0.377402855612831,
|
||||
0.852698679008894,
|
||||
0.377402855612831,
|
||||
-0.110624404418437,
|
||||
-0.023849465019557,
|
||||
0.037828455507264
|
||||
};
|
||||
|
||||
const vtkm::Float64 h4[9] = {
|
||||
0.0,
|
||||
-0.064538882628697,
|
||||
-0.040689417609164,
|
||||
0.418092273221617,
|
||||
0.788485616405583,
|
||||
0.418092273221617,
|
||||
-0.0406894176091641,
|
||||
-0.0645388826286971,
|
||||
0.0
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user