Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
Moment Invariants
Commits
aa12fce5
Commit
aa12fce5
authored
Apr 18, 2019
by
Sujin Philip
Browse files
Update to latest VTK modules infrastructure
parent
9cf903bf
Changes
49
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
aa12fce5
message
(
STATUS
"vtkFiltersMomentInvariants: Building as a Remote VTK module"
)
INCLUDE
(
vtkDependentOption
)
set
(
NOT_WIN32 ON
)
if
(
WIN32
)
set
(
NOT_WIN32 OFF
)
endif
()
vtk_dependent_option
(
VTK_BUILD_PARALLEL_MOMENT_INVARIANTS
"Build vtkFiltersParallelMomentInvariants"
OFF
"NOT_WIN32"
OFF
)
mark_as_advanced
(
VTK_BUILD_PARALLEL_MOMENT_INVARIANTS
)
set
(
Module_SRCS
vtkMomentsTensor.h
vtkComputeMoments.cxx
vtkMomentInvariants.cxx
vtkMomentsHelper.cxx
vtkSimilarityBalls.cxx
vtkReconstructFromMoments.cxx
)
if
(
VTK_BUILD_PARALLEL_MOMENT_INVARIANTS
)
list
(
APPEND Module_SRCS
bare_fft.c
bare_fft_interface.c
dfft_common.c
dfft_host.c
vtkPMomentsHelper.cxx
vtkPComputeMoments.cxx
vtkPSimilarityBalls.cxx
)
endif
()
SET_SOURCE_FILES_PROPERTIES
(
bare_fft.c
bare_fft_interface.c
dfft_common.c
dfft_host.c
PROPERTIES LANGUAGE CXX
)
vtk_module_library
(
vtkFiltersMomentInvariants
${
Module_SRCS
}
)
if
(
VTK_BUILD_PARALLEL_MOMENT_INVARIANTS
)
find_package
(
MPI REQUIRED
)
target_include_directories
(
vtkFiltersMomentInvariants PUBLIC
${
MPI_INCLUDE_DIR
}
)
vtk_module_link_libraries
(
vtkFiltersMomentInvariants LINK_PUBLIC
${
MPI_LIBRARIES
}
)
option
(
ENABLE_HOST
"CPU FFT support"
ON
)
set
(
LOCAL_FFT_LIB LOCAL_LIB_BARE
)
endif
()
\ No newline at end of file
cmake_minimum_required
(
VERSION 3.8
)
project
(
MomentInvariants
)
# This lists file is ignored when built as part of VTK remote modules.
# Code can be added here to support standalone builds.
#
# find_package(VTK 8.9 REQUIRED)
#
# add_subdirectory(MomentInvariants)
# add_subdirectory(ParallelMomentInvariants)
MomentInvariants/CMakeLists.txt
0 → 100644
View file @
aa12fce5
set
(
MI_SOURCES
vtkComputeMoments.cxx
vtkMomentInvariants.cxx
vtkMomentsHelper.cxx
vtkReconstructFromMoments.cxx
vtkSimilarityBalls.cxx
)
set
(
MI_HEADERS
vtkComputeMoments.h
vtkMomentInvariants.h
vtkMomentsHelper.h
vtkReconstructFromMoments.h
vtkSimilarityBalls.h
)
vtk_module_add_module
(
VTK::MomentInvariants
SOURCES
${
MI_SOURCES
}
HEADERS
${
MI_HEADERS
}
)
MomentInvariants/Testing/CMakeLists.txt
0 → 100644
View file @
aa12fce5
set
(
DATA_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../../Testing/Data/Input"
)
vtk_module_test_data
(
"DATA{
${
DATA_PATH
}
/,RECURSE:,REGEX:.*}"
)
add_subdirectory
(
Python
)
MomentInvariants/Testing/Python/CMakeLists.txt
0 → 100644
View file @
aa12fce5
vtk_add_test_python
(
NO_VALID
patternDetectionTestSimple,patternDetectionTestSimple.py
)
vtk_add_test_python
(
NO_VALID
patternDetectionFFTTestSimple,patternDetectionTestSimple.py
"fft"
)
vtk_add_test_python
(
NO_VALID
serialCheckComputeShort2D,TestConvFFTComputeShort.py
"DATA{
${
DATA_PATH
}
/2DScalar.vti}"
"DATA{
${
DATA_PATH
}
/2DScalar.vtm}"
)
vtk_add_test_python
(
NO_VALID
serialCheckComputeShort3D,TestConvFFTComputeShort.py
"DATA{
${
DATA_PATH
}
/3DScalar.vti}"
"DATA{
${
DATA_PATH
}
/3DScalar.vtm}"
)
Testing/Python/TestConvFFTComputeShort.py
→
MomentInvariants/
Testing/Python/TestConvFFTComputeShort.py
View file @
aa12fce5
File moved
Testing/Python/patternDetectionHelper.py
→
MomentInvariants/
Testing/Python/patternDetectionHelper.py
View file @
aa12fce5
File moved
Testing/Python/patternDetectionTest.py
→
MomentInvariants/
Testing/Python/patternDetectionTest.py
View file @
aa12fce5
File moved
Testing/Python/patternDetectionTestSimple.py
→
MomentInvariants/
Testing/Python/patternDetectionTestSimple.py
View file @
aa12fce5
File moved
Testing/Python/patternDetectionTestSimpleOutput.py
→
MomentInvariants/
Testing/Python/patternDetectionTestSimpleOutput.py
View file @
aa12fce5
File moved
MomentInvariants/vtk.module
0 → 100644
View file @
aa12fce5
NAME
VTK
::
MomentInvariants
LIBRARY_NAME
MomentInvariants
GROUPS
StandAlone
DEPENDS
VTK
::
FiltersCore
VTK
::
ImagingCore
VTK
::
eigen
PRIVATE_DEPENDS
VTK
::
kissfft
TEST_DEPENDS
VTK
::
IOXML
vtkComputeMoments.cxx
→
MomentInvariants/
vtkComputeMoments.cxx
View file @
aa12fce5
File moved
vtkComputeMoments.h
→
MomentInvariants/
vtkComputeMoments.h
View file @
aa12fce5
...
...
@@ -75,14 +75,14 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef vtkComputeMoments_h
#define vtkComputeMoments_h
#include
"
vtkFilters
MomentInvariantsModule.h"
// For export macro
#include
"MomentInvariantsModule.h"
// For export macro
#include
"vtkDataSetAlgorithm.h"
#include
<string>
// for std::string
#include
<vector>
// for std::vector
class
VTKFILTERS
MOMENTINVARIANTS_EXPORT
vtkComputeMoments
:
public
vtkDataSetAlgorithm
class
MOMENTINVARIANTS_EXPORT
vtkComputeMoments
:
public
vtkDataSetAlgorithm
{
public:
static
vtkComputeMoments
*
New
();
...
...
vtkMomentInvariants.cxx
→
MomentInvariants/
vtkMomentInvariants.cxx
View file @
aa12fce5
File moved
vtkMomentInvariants.h
→
MomentInvariants/
vtkMomentInvariants.h
View file @
aa12fce5
...
...
@@ -81,14 +81,14 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include
"vtkDataSetAlgorithm.h"
#include
"vtkDataSetAttributes.h"
// needed for vtkDataSetAttributes::FieldList
#include
"
vtkFilters
MomentInvariantsModule.h"
// For export macro
#include
"MomentInvariantsModule.h"
// For export macro
#include
"vtkTuple.h"
// For internal API
#include
<vector>
// For internal API
class
vtkImageData
;
class
vtkMomentsTensor
;
class
VTKFILTERS
MOMENTINVARIANTS_EXPORT
vtkMomentInvariants
:
public
vtkDataSetAlgorithm
class
MOMENTINVARIANTS_EXPORT
vtkMomentInvariants
:
public
vtkDataSetAlgorithm
{
public:
static
vtkMomentInvariants
*
New
();
...
...
@@ -281,7 +281,7 @@ protected:
~
vtkMomentInvariants
()
override
;
int
RequestInformation
(
vtkInformation
*
,
vtkInformationVector
**
,
vtkInformationVector
*
)
override
;
int
RequestUpdateExtent
(
vtkInformation
*
,
vtkInformationVector
**
,
vtkInformationVector
*
)
override
;
/**
...
...
@@ -335,7 +335,7 @@ private:
* Flag for using the original resolution of the input dataset
*/
bool
UseOriginalResolution
;
/**
* If the pattern has multiple fields in its point data, you can choose the one that the moments
* shall be calculated of
...
...
vtkMomentsHelper.cxx
→
MomentInvariants/
vtkMomentsHelper.cxx
View file @
aa12fce5
File moved
vtkMomentsHelper.h
→
MomentInvariants/
vtkMomentsHelper.h
View file @
aa12fce5
...
...
@@ -72,7 +72,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define vtkMomentsHelper_h
#ifndef __VTK_WRAP__
#include
"
vtkFilters
MomentInvariantsModule.h"
// For export macro
#include
"MomentInvariantsModule.h"
// For export macro
#include
"vtkSmartPointer.h"
// for vtkSmartPointer.
#include
"vtkType.h"
// for vtkIdType
...
...
@@ -84,7 +84,7 @@ class vtkDataSet;
class
vtkImageData
;
class
vtkMomentsTensor
;
struct
VTKFILTERS
MOMENTINVARIANTS_EXPORT
vtkMomentsHelper
struct
MOMENTINVARIANTS_EXPORT
vtkMomentsHelper
{
/**
* The monomial basis is not orthonormal. We need this function for the reconstruction of the
...
...
vtkMomentsTensor.h
→
MomentInvariants/
vtkMomentsTensor.h
View file @
aa12fce5
File moved
vtkReconstructFromMoments.cxx
→
MomentInvariants/
vtkReconstructFromMoments.cxx
View file @
aa12fce5
File moved
vtkReconstructFromMoments.h
→
MomentInvariants/
vtkReconstructFromMoments.h
View file @
aa12fce5
...
...
@@ -81,13 +81,13 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define vtkReconstructFromMoments_h
#include
"vtkDataSetAlgorithm.h"
#include
"
vtkFilters
MomentInvariantsModule.h"
// For export macro
#include
"MomentInvariantsModule.h"
// For export macro
#include
<vector>
// For internal vector methods
class
vtkImageData
;
class
VTKFILTERS
MOMENTINVARIANTS_EXPORT
vtkReconstructFromMoments
:
public
vtkDataSetAlgorithm
class
MOMENTINVARIANTS_EXPORT
vtkReconstructFromMoments
:
public
vtkDataSetAlgorithm
{
public:
static
vtkReconstructFromMoments
*
New
();
...
...
vtkSimilarityBalls.cxx
→
MomentInvariants/
vtkSimilarityBalls.cxx
View file @
aa12fce5
File moved
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment