Coder Social home page Coder Social logo

widgeta / pyrtools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from labforcomputationalvision/pyrtools

0.0 1.0 0.0 226.04 MB

image pyramid code in python 3

Home Page: https://pyrtools.readthedocs.io/

License: Other

Python 3.04% Jupyter Notebook 96.03% C 0.93%

pyrtools's Introduction

pyrtools: Windows Version

Statement

This project is to make pyrtools available on Windows. I tested it on Windows 10 64-bit. If you have other operating system, please rebuild c code in pyrtools/pyramids/c/Windows into *.dll.

基础工作

原始项目地址 https://github.com/LabForComputationalVision/pyrtools

错误原因

Windows 系统下安装时,ext_modules 中的 *.c 文件不会像在其他系统一样被编译成动态链接库,而是 *.pyd 文件。但是 *.pyd 文件下的函数和方法需要经过 PyInit_ 的封装才能被正确链接。该项目中的装饰是直接用 Cython 调用动态链接库装饰而成的 Python 函数.

解决办法

采用 Windows 下生成动态链接库的方法重新封装了 *.c 中的函数,并且编译成 *.dll 文件,再修改 wrapper.py 的代码,当检测到是 Windows 系统时直接利用 Cython 进行调用。在编译环节无论是采用 MSVC 还是 MinGw 均可。修改过的代码在 pyrtools/pyramids/c/Windows 目录下。

安装

请在安装之前请先确认操作系统版本与位数,如果与我不一致,请仔细阅读解决办法,手动编译动态链接库,再执行 python setup.py install。如有问题可与我联系。

pyrtools's People

Contributors

billbrod avatar pehf avatar ravos avatar zahra-kadkhodaie avatar widgeta avatar nikparth avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.