seung-lab / euclidean-distance-transform-3d

Euclidean distance & signed distance transform for multi-label 3D anisotropic images using marching parabolas.
GNU General Public License v3.0
239 stars 37 forks source link

Missing file threadpool.h #17

Closed arc130 closed 4 years ago

arc130 commented 4 years ago

Thanks for your work. When I using"edt.hpp" in cpp, it seems missing file threadpool.h

william-silversmith commented 4 years ago

Oops! You can find it here. Just throw it in the same directory: https://github.com/seung-lab/euclidean-distance-transform-3d/blob/master/python/threadpool.h

william-silversmith commented 4 years ago

I think this would probably be nicer as a single hpp file, but I copied threadpool.h to the cpp directory now.

william-silversmith commented 4 years ago

Looks like the test.cpp file compiles and runs. Please reopen if you have other concerns!

arc130 commented 4 years ago

Thanks for your response. I find your code require C++11, and can not be used in MSVC 100. Can I modify your code so that it can be used on VS2010, or providing me the single thread version?

william-silversmith commented 4 years ago

I introduced parallel fairly late. This version from 1.2.4 is single threaded: https://github.com/seung-lab/euclidean-distance-transform-3d/blob/1.2.4/cpp/edt.hpp

william-silversmith commented 4 years ago

It seems to compile without c++11 too!

arc130 commented 4 years ago

Thanks a lot!