本文整理汇总了Python中skimage._build.cython函数的典型用法代码示例。如果您正苦于以下问题:Python cython函数的具体用法?Python cython怎么用?Python cython使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了cython函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('restoration', parent_package, top_path)
config.add_data_dir('tests')
cython(['_unwrap_1d.pyx'], working_path=base_path)
cython(['_unwrap_2d.pyx'], working_path=base_path)
cython(['_unwrap_3d.pyx'], working_path=base_path)
cython(['_denoise_cy.pyx'], working_path=base_path)
cython(['_nl_means_denoising.pyx'], working_path=base_path)
config.add_extension('_unwrap_1d', sources=['_unwrap_1d.c'],
include_dirs=[get_numpy_include_dirs()])
unwrap_sources_2d = ['_unwrap_2d.c', 'unwrap_2d_ljmu.c']
config.add_extension('_unwrap_2d', sources=unwrap_sources_2d,
include_dirs=[get_numpy_include_dirs()])
unwrap_sources_3d = ['_unwrap_3d.c', 'unwrap_3d_ljmu.c']
config.add_extension('_unwrap_3d', sources=unwrap_sources_3d,
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('_nl_means_denoising',
sources=['_nl_means_denoising.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:AbdealiJK,项目名称:scikit-image,代码行数:27,代码来源:setup.py
示例2: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
from skimage._build import cython
config = Configuration('zmuv', parent_package, top_path)
cython(['zmuv.pyx'], working_path=base_path)
config.add_extension(
'zmuv',
sources=['zmuv.c'],
include_dirs=[get_numpy_include_dirs()],
extra_compile_args=[
"-fopenmp",
"-pthread",
"-O3",
#"-march=native",
#"-mtune=native",
#"-funroll-all-loops",
#"-fomit-frame-pointer",
#"-msse4",
#"-ftree-vectorize",
#"-ftree-vectorizer-verbose=5",
#"-ffast-math",
#"-ftree-loop-distribution",
#"-funroll-loops",
#"-ftracer",
#"-ftree-parallelize-loops=4",
#"-foptimize-register-move",
#"-funswitch-loops",
],
extra_link_args=['-fopenmp'],
)
return config
开发者ID:npinto,项目名称:bangreadout,代码行数:35,代码来源:setup.py
示例3: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('io', parent_package, top_path)
config.add_data_dir('tests')
config.add_data_files('_plugins/*.ini')
# This function tries to create C files from the given .pyx files. If
# it fails, we build the checked-in .c files.
cython(['_plugins/_colormixer.pyx', '_plugins/_histograms.pyx'],
working_path=base_path)
config.add_extension('_plugins._colormixer',
sources=['_plugins/_colormixer.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_plugins._histograms',
sources=['_plugins/_histograms.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_plugins._tifffile',
sources=['_plugins/tifffile.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:Rapternmn,项目名称:scikit-image,代码行数:25,代码来源:setup.py
示例4: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
from skimage._build import cython
config = Configuration('resample', parent_package, top_path)
config.add_data_dir('tests')
cython(['_resample.pyx'], working_path=base_path)
config.add_extension(
'_resample',
sources=['_resample.c'],
include_dirs=[get_numpy_include_dirs()],
extra_compile_args=[
"-fopenmp",
"-pthread",
"-O6",
"-march=native",
"-mtune=native",
"-funroll-all-loops",
"-fomit-frame-pointer",
"-march=native",
"-mtune=native",
"-msse4",
"-ftree-vectorize",
"-ftree-vectorizer-verbose=5",
],
extra_link_args=['-fopenmp'],
)
return config
开发者ID:nsf-ri-ubicv,项目名称:sthor,代码行数:31,代码来源:setup.py
示例5: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('filter', parent_package, top_path)
config.add_data_dir('tests')
config.add_data_dir('rank/tests')
cython(['_ctmf.pyx'], working_path=base_path)
cython(['rank/core_cy.pyx'], working_path=base_path)
cython(['rank/generic_cy.pyx'], working_path=base_path)
cython(['rank/percentile_cy.pyx'], working_path=base_path)
cython(['rank/bilateral_cy.pyx'], working_path=base_path)
config.add_extension('_ctmf', sources=['_ctmf.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('rank.core_cy', sources=['rank/core_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('rank.generic_cy', sources=['rank/generic_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension(
'rank.percentile_cy', sources=['rank/percentile_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension(
'rank.bilateral_cy', sources=['rank/bilateral_cy.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:A-0-,项目名称:scikit-image,代码行数:27,代码来源:setup.py
示例6: configuration
def configuration(parent_package="", top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration("filter_iter", parent_package, top_path)
cython(["_filter_iter.pyx"], working_path=base_path)
config.add_extension("_filter_iter", sources=["_filter_iter.c"], include_dirs=[get_numpy_include_dirs()])
# config.add_extension('example_C_filters', sources=['example_C_filters.c'])
return config
开发者ID:Nadav-Horesh,项目名称:filter_iter,代码行数:10,代码来源:setup.py
示例7: configuration
def configuration(parent_package="", top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration("measure", parent_package, top_path)
config.add_data_dir("tests")
cython(["_find_contours.pyx"], working_path=base_path)
config.add_extension("_find_contours", sources=["_find_contours.c"], include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:iedo,项目名称:scikits.image,代码行数:11,代码来源:setup.py
示例8: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('graph', parent_package, top_path)
config.add_data_dir('tests')
# This function tries to create C files from the given .pyx files. If
# it fails, try to build with pre-generated .c files.
cython(['_ncut_cy.pyx'], working_path=base_path)
config.add_extension('_ncut_cy', sources=['_ncut_cy.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:AbdealiJK,项目名称:scikit-image,代码行数:12,代码来源:setup.py
示例9: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('draw', parent_package, top_path)
config.add_data_dir('tests')
cython(['_draw.pyx'], working_path=base_path)
config.add_extension('_draw', sources=['_draw.c'],
include_dirs=[get_numpy_include_dirs(), '../_shared'])
return config
开发者ID:Cadair,项目名称:scikit-image,代码行数:12,代码来源:setup.py
示例10: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('WTP', parent_package, top_path)
# config.add_data_dir('tests')
cython(['_perform_WTP.pyx'], working_path=base_path)
WTP_sources = ['_perform_WTP.c', 'perform_WTP_ljmu.c']
config.add_extension('_perform_WTP', sources=WTP_sources,
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:gsmetana,项目名称:EDL-Fringe-Toolbox,代码行数:13,代码来源:setup.py
示例11: configuration
def configuration(parent_package="", top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration("feature", parent_package, top_path)
config.add_data_dir("tests")
cython(["_texture.pyx"], working_path=base_path)
cython(["_template.pyx"], working_path=base_path)
config.add_extension("_texture", sources=["_texture.c"], include_dirs=[get_numpy_include_dirs(), "../_shared"])
config.add_extension("_template", sources=["_template.c"], include_dirs=[get_numpy_include_dirs(), "../_shared"])
return config
开发者ID:GerardoLopez,项目名称:scikits-image,代码行数:13,代码来源:setup.py
示例12: configuration
def configuration(parent_package="", top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration("transform", parent_package, top_path)
config.add_data_dir("tests")
cython(["_hough_transform.pyx"], working_path=base_path)
cython(["_warps_cy.pyx"], working_path=base_path)
config.add_extension("_hough_transform", sources=["_hough_transform.c"], include_dirs=[get_numpy_include_dirs()])
config.add_extension("_warps_cy", sources=["_warps_cy.c"], include_dirs=[get_numpy_include_dirs(), "../_shared"])
return config
开发者ID:aeweiwi,项目名称:scikit-image,代码行数:14,代码来源:setup.py
示例13: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('measure', parent_package, top_path)
config.add_data_dir('tests')
cython(['_find_contours.pyx'], working_path=base_path)
cython(['_moments.pyx'], working_path=base_path)
config.add_extension('_find_contours', sources=['_find_contours.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_moments', sources=['_moments.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:ChrisBeaumont,项目名称:scikit-image,代码行数:15,代码来源:setup.py
示例14: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('segmentation', parent_package, top_path)
cython(['_felzenszwalb_cy.pyx',
'_quickshift_cy.pyx',
'_slic.pyx'], working_path=base_path)
config.add_extension('_felzenszwalb_cy', sources=['_felzenszwalb_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_quickshift_cy', sources=['_quickshift_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_slic', sources=['_slic.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:TheArindham,项目名称:scikit-image,代码行数:16,代码来源:setup.py
示例15: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
from skimage._build import cython
config = Configuration('resample', parent_package, top_path)
cython(['_resample.pyx'], working_path=base_path)
config.add_extension(
'_resample',
sources=['_resample.c'],
include_dirs=[get_numpy_include_dirs()],
extra_compile_args=[
"-pthread",
"-O4",
"-fopenmp",
],
extra_link_args=["-fopenmp"]
)
return config
开发者ID:poilvert,项目名称:toolbox,代码行数:20,代码来源:resample_setup.py
示例16: configuration
def configuration(parent_package="", top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration("io", parent_package, top_path)
config.add_data_dir("tests")
config.add_data_files("_plugins/*.ini")
# This function tries to create C files from the given .pyx files. If
# it fails, we build the checked-in .c files.
cython(["_plugins/_colormixer.pyx", "_plugins/_histograms.pyx"], working_path=base_path)
config.add_extension(
"_plugins._colormixer", sources=["_plugins/_colormixer.c"], include_dirs=[get_numpy_include_dirs()]
)
config.add_extension(
"_plugins._histograms", sources=["_plugins/_histograms.c"], include_dirs=[get_numpy_include_dirs()]
)
return config
开发者ID:RADIO-PROJECT-EU,项目名称:HumanPatternRecognition,代码行数:20,代码来源:setup.py
示例17: configuration
def configuration(parent_package="", top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration("morphology", parent_package, top_path)
config.add_data_dir("tests")
cython(["_watershed.pyx"], working_path=base_path)
cython(["_skeletonize_cy.pyx"], working_path=base_path)
cython(["_convex_hull.pyx"], working_path=base_path)
cython(["_greyreconstruct.pyx"], working_path=base_path)
cython(["_skeletonize_3d_cy.pyx.in"], working_path=base_path)
config.add_extension("_watershed", sources=["_watershed.c"], include_dirs=[get_numpy_include_dirs()])
config.add_extension("_skeletonize_cy", sources=["_skeletonize_cy.c"], include_dirs=[get_numpy_include_dirs()])
config.add_extension("_convex_hull", sources=["_convex_hull.c"], include_dirs=[get_numpy_include_dirs()])
config.add_extension("_greyreconstruct", sources=["_greyreconstruct.c"], include_dirs=[get_numpy_include_dirs()])
config.add_extension(
"_skeletonize_3d_cy", sources=["_skeletonize_3d_cy.c"], include_dirs=[get_numpy_include_dirs()]
)
return config
开发者ID:jjhelmus,项目名称:scikit-image,代码行数:21,代码来源:setup.py
示例18: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('morphology', parent_package, top_path)
config.add_data_dir('tests')
cython(['_watershed.pyx',
'_skeletonize_cy.pyx',
'_convex_hull.pyx',
'_greyreconstruct.pyx',
'_extrema_cy.pyx'], working_path=base_path)
# _skeletonize_3d uses c++, so it must be cythonized separately
cython(['_skeletonize_3d_cy.pyx.in'], working_path=base_path)
cython(['_extrema_cy.pyx'], working_path=base_path)
cython(['_flood_fill_cy.pyx'], working_path=base_path)
cython(['_max_tree.pyx'], working_path=base_path)
config.add_extension('_watershed', sources=['_watershed.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_skeletonize_cy', sources=['_skeletonize_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_convex_hull', sources=['_convex_hull.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_greyreconstruct', sources=['_greyreconstruct.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_max_tree', sources=['_max_tree.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_skeletonize_3d_cy',
sources=['_skeletonize_3d_cy.cpp'],
include_dirs=[get_numpy_include_dirs()],
language='c++')
config.add_extension('_extrema_cy', sources=['_extrema_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_flood_fill_cy', sources=['_flood_fill_cy.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:ThomasWalter,项目名称:scikit-image,代码行数:37,代码来源:setup.py
示例19: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('feature', parent_package, top_path)
config.add_data_dir('tests')
cython(['corner_cy.pyx'], working_path=base_path)
cython(['censure_cy.pyx'], working_path=base_path)
cython(['_brief_cy.pyx'], working_path=base_path)
cython(['_texture.pyx'], working_path=base_path)
cython(['_template.pyx'], working_path=base_path)
config.add_extension('corner_cy', sources=['corner_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('censure_cy', sources=['censure_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_brief_cy', sources=['_brief_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_texture', sources=['_texture.c'],
include_dirs=[get_numpy_include_dirs(), '../_shared'])
config.add_extension('_template', sources=['_template.c'],
include_dirs=[get_numpy_include_dirs(), '../_shared'])
return config
开发者ID:Autodidact24,项目名称:scikit-image,代码行数:24,代码来源:setup.py
示例20: configuration
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('morphology', parent_package, top_path)
config.add_data_dir('tests')
cython(['cmorph.pyx'], working_path=base_path)
cython(['_watershed.pyx'], working_path=base_path)
cython(['_skeletonize_cy.pyx'], working_path=base_path)
cython(['_convex_hull.pyx'], working_path=base_path)
cython(['_greyreconstruct.pyx'], working_path=base_path)
config.add_extension('cmorph', sources=['cmorph.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_watershed', sources=['_watershed.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_skeletonize_cy', sources=['_skeletonize_cy.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_convex_hull', sources=['_convex_hull.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_greyreconstruct', sources=['_greyreconstruct.c'],
include_dirs=[get_numpy_include_dirs()])
return config
开发者ID:JeanKossaifi,项目名称:scikit-image,代码行数:24,代码来源:setup.py
注:本文中的skimage._build.cython函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论