Refactor rank filter package for consistent naming

This commit is contained in:
Johannes Schönberger
2013-07-12 23:16:07 +02:00
parent f11d5a1c8d
commit 9a17db19da
15 changed files with 822 additions and 826 deletions
+15 -22
View File
@@ -14,46 +14,39 @@ def configuration(parent_package='', top_path=None):
cython(['_ctmf.pyx'], working_path=base_path)
cython(['_denoise_cy.pyx'], working_path=base_path)
cython(['rank/_core8.pyx'], working_path=base_path)
cython(['rank/_core16.pyx'], working_path=base_path)
cython(['rank/_crank8.pyx'], working_path=base_path)
cython(['rank/_crank8_percentiles.pyx'], working_path=base_path)
cython(['rank/_crank16.pyx'], working_path=base_path)
cython(['rank/_crank16_percentiles.pyx'], working_path=base_path)
cython(['rank/_crank16_bilateral.pyx'], working_path=base_path)
cython(['rank/percentile_rank.pyx'], working_path=base_path)
cython(['rank/bilateral_rank.pyx'], working_path=base_path)
cython(['rank/core8_cy.pyx'], working_path=base_path)
cython(['rank/core16_cy.pyx'], working_path=base_path)
cython(['rank/generic8_cy.pyx'], working_path=base_path)
cython(['rank/percentile8_cy.pyx'], working_path=base_path)
cython(['rank/generic16_cy.pyx'], working_path=base_path)
cython(['rank/percentile16_cy.pyx'], working_path=base_path)
cython(['rank/bilateral16_cy.pyx'], working_path=base_path)
config.add_extension('_ctmf', sources=['_ctmf.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_denoise_cy', sources=['_denoise_cy.c'],
include_dirs=[get_numpy_include_dirs(), '../_shared'])
config.add_extension('rank._core8', sources=['rank/_core8.c'],
config.add_extension('rank.core8_cy', sources=['rank/core8_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('rank._core16', sources=['rank/_core16.c'],
config.add_extension('rank.core16_cy', sources=['rank/core16_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('rank._crank8', sources=['rank/_crank8.c'],
config.add_extension('rank.generic8_cy', sources=['rank/generic8_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension(
'rank._crank8_percentiles', sources=['rank/_crank8_percentiles.c'],
'rank.percentile8_cy', sources=['rank/percentile8_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('rank._crank16', sources=['rank/_crank16.c'],
config.add_extension('rank.generic16_cy', sources=['rank/generic16_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension(
'rank._crank16_percentiles', sources=['rank/_crank16_percentiles.c'],
'rank.percentile16_cy', sources=['rank/percentile16_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension(
'rank._crank16_bilateral', sources=['rank/_crank16_bilateral.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension(
'rank.percentile_rank', sources=['rank/percentile_rank.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension(
'rank.bilateral_rank', sources=['rank/bilateral_rank.c'],
'rank.bilateral16_cy', sources=['rank/bilateral16_cy.c'],
include_dirs=[get_numpy_include_dirs()])
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(maintainer='scikit-image Developers',