How to Compile
Visual Studio solution (Windows)
Future releases will utilize CMake to assist in setting up your environment. In the meantime, please use the following directions to set up your development environment.
PLEASE follow these instructions prior to using HIP on Windows.
The full Hydra Image Processing library can be built using the Visual Studio solution file src/c/CudaImageProccessing.sln. Python bindings are built as part of the main solution, or can be built separately by src/c/CudaPy3DLL.vcxproj.
Two environment variables must be defined for a successful build:
PYTHON3_DIR - Root directory of the Python 3.x installation to build against
NUMPY3_DIR - Root directory of the Numpy installation to build against
It is currently simplest to build Python bindings using the full solution file, at present, as the Python project is dependent on the core image processing library. NOTE: Unless you have Debugbuild of Python 3.x, the bindings must be built in Release mode.
Windows 7 or above
CUDA capable device with the latest drivers installed
Watchdog registry values set (see Registry Changes)
Experimental Python bindings have been created for the Hydra Image Processing library, however, they must currently be built from source, since Python versions only support limited binary compatibility.
Installation and Usage
After a successful build the file src/Python/HIP.pyd should be placed in a directory on the PYTHON_PATH to make the Hydra Image Processing tools accessible from Python.
For use in Python import the HIP module:
Example of blurring a random numpy volume:
import HIP import numpy as np im = np.random.randint(0,256, size=(512,512,25), dtype=np.uint8) imOut = HIP.Gaussian(im, [25,25,10])