This is the shortest path to build OCTproEngine, open the ImGui app, and run the Python examples.
- Git: https://git-scm.com/install/windows.html
- MSVC build tools / Visual Studio 2022: https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history#fixed-version-bootstrappers
- CMake: https://cmake.org/download/
- Python 3: https://www.python.org/downloads/windows/
Optional:
- CUDA Toolkit if you want the CUDA backend: https://developer.nvidia.com/cuda-downloads
- Vulkan SDK if you want the Vulkan backend: https://vulkan.lunarg.com/sdk/home
Notes:
- On the Microsoft page above, use the
Build Toolsbootstrapper, or install Visual Studio 2022 withDesktop development with C++. - FFTW3 is needed for the CPU backend, but on Windows the build script can download it for you.
- OpenCL is often already available through your GPU driver, so no separate OpenCL install is needed in many cases.
- If CUDA, OpenCL, or Vulkan are missing, CMake will disable those backends automatically.
Open the Windows Start menu, type Developer Command Prompt for VS 2022, and open it.
Navigate to a folder that already exists. For example, your Documents folder:
cd %USERPROFILE%\DocumentsThen clone the repo with:
git clone https://github.com/spectralcode/OCTproEngine.gitThen navigate into the project folder:
cd OCTproEngineThen run:
build_windows.batRecommended answers:
Build Python bindings?->Yif you want to run the Python exampleAuto-download FFTW3?->Yif askedBuild OCTproViewer?->Yif you want the ImGui app
When it works, the script prints Build completed successfully!.
If you built OCTproViewer, run:
build\examples\Release\octproviewer.exeIf you built the Python bindings, you can run the Python examples and tests.
First, set PYTHONPATH so Python can find the built octproengine module:
set PYTHONPATH=%CD%\build\python\Release;%PYTHONPATH%This command assumes you are still in the OCTproEngine folder.
Then run the simple synthetic-data example:
py -3 python\examples\example_basic.pyIf py is not available on your machine, use python instead.
This example does not include sample OCT data. It needs your own raw OCT file.
Open python/examples/example_load_raw_file.py in a text editor or in your Python IDE and set:
RAW_FILE_PATH = Path(r"C:\path\to\your\data.raw")Also modify the processing settings and input data parameters in that file if needed.
Save the modified file and then run:
py -3 -m pip install matplotlib
py -3 python\examples\example_load_raw_file.pymatplotlib is only needed for this example so it can display the processed image.