lucasb-eyer / pydensecrf

Python wrapper to Philipp Krähenbühl's dense (fully connected) CRFs with gaussian edge potentials.
MIT License
1.96k stars 417 forks source link

Change one cpp file in the source code and compile [3DVolumes] #113

Open MiguelAngeloMartinsRibeiro opened 2 years ago

MiguelAngeloMartinsRibeiro commented 2 years ago

Hi @lucasb-eyer

First of all thank you for your extraordinary work

I want to apply your library but with a small exchange, I wanna change the densecrf.cpp and the densecrf.h to match the ones in the 3D volumetric paper by the same authors. The paper and the GitHub of that paper:

https://arxiv.org/abs/1603.05959 https://github.com/deepmedic/dense3dCrf

The problem is that this repository is only in c++ and I can't install it as a python library. The only thing that differs in the source code is densecrf.cpp and the densecrf.h. And they only add a class called densecrf3D.

I already tried to change those files and install the library with the changed files but it didn't work. Then I noticed that there's to files named densecrf.pyx and densecrf.pyd and I tried to edit those ones but I had no result as well.

So, I don't really don't know how to make a pydensecrf library with those changes on the source code.

I would really appreciate some help.