You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__The simplest way to utilise the library from Windows 10 is through using the Windows Subsystem for Linux; see: https://docs.microsoft.com/en-us/windows/wsl/install-win10 then follow linux instructions.__
81
+
81
82
__Compilation only works with mingw64/clang or the Intel C++ Compiler, with Intel C++ being the recommended way__
82
83
84
+
The below instructions for VS can be attempted; however they have not been reproduced.
85
+
83
86
You need to have Visual Studio 2017 installed, with [the community edition](https://www.visualstudio.com/downloads/) being sufficient. LibAPR does not compile correctly with the default Visual Studio compiler, so you also need to have the [Intel C++ Compiler, 18.0 or higher](https://software.intel.com/en-us/c-compilers) installed. [`cmake`](https://cmake.org/download/) is also a requirement.
84
87
85
88
Furthermore, you need to have HDF5 installed (binary distribution download at [The HDF Group](http://hdfgroup.org) and LibTIFF (source download from [SimpleSystems](http://www.simplesystems.org/libtiff/). LibTIFF needs to be compiled via `cmake`. LibTIFF's install target will then install the library into `C:\Program Files\tiff`.
@@ -96,6 +99,8 @@ cmake --build . --config Debug
96
99
This will set the appropriate hints for Visual Studio to find both LibTIFF and HDF5. This will create the `apr.dll` library in the `build/Debug` directory, as well as all of the examples. If you need a `Release` build, run `cmake --build . --config Release` from the `build` directory.
97
100
98
101
## Examples and Documentation
102
+
These examples can be turned on by adding -DAPR_BUILD_EXAMPLES=ON to the cmake command.
103
+
99
104
There are nine basic examples, that show how to generate and compute with the APR:
100
105
101
106
| Example | How to ... |
@@ -104,8 +109,6 @@ There are nine basic examples, that show how to generate and compute with the AP
104
109
|[Example_apr_iterate](./examples/Example_apr_iterate.cpp)| iterate through a given APR. |
105
110
|[Example_neighbour_access](./examples/Example_neighbour_access.cpp)| access particle and face neighbours. |
106
111
|[Example_compress_apr](./examples/Example_compress_apr.cpp)| additionally compress the intensities stored in an APR. |
107
-
|[Example_compute_gradient](./examples/Example_compute_gradient.cpp)| compute a gradient based on the stored particles in an APR. |
108
-
|[Example_produce_paraview_file](./examples/Example_produce_paraview_file.cpp)| produce a file for visualisation in ParaView or reading in Matlab. |
109
112
|[Example_random_access](./examples/Example_random_access.cpp)| perform random access operations on particles. |
110
113
|[Example_ray_cast](./examples/Example_ray_cast.cpp)| perform a maximum intensity projection ray cast directly on the APR data structures read from an APR. |
111
114
|[Example_reconstruct_image](./examples/Example_reconstruct_image.cpp)| reconstruct a pixel image from an APR. |
@@ -114,22 +117,17 @@ All examples except Example_get_apr require an already produced APR, such as tho
114
117
115
118
For tutorial on how to use the examples, and explanation of data-structures see [the library guide](./docs/lib_guide.pdf).
116
119
117
-
## Python support
118
-
119
-
Basic functionality is supported in Python through wrappers. To build the python module,
120
-
use the CMake option
120
+
## LibAPR Tests
121
121
122
-
`-DAPR_BUILD_PYTHON_WRAPPERS=ON`
123
-
124
-
Example usage of the available functionality:
122
+
The testing framework can be turned on by adding -DAPR_TESTS=ON to the cmake command. All tests can then be run by executing on the command line your build folder.
123
+
```
124
+
ctest
125
+
```
126
+
Please let us know by creating an issue, if any of these tests are failing on your machine.
125
127
126
-
| Example | How to ... |
127
-
|:--|:--|
128
-
|[Example_get_apr_from_array](./examples/python_examples/Example_get_apr_from_array.py)| create an APR from an ndarray and store as hdf5. |
129
-
|[Example_get_apr_from_file](./examples/python_examples/Example_get_apr_from_file.py)| create an APR from a TIFF and store as hdf5. |
130
-
|[Example_reconstruct_image](./examples/python_examples/Example_reconstruct_image.py)| read in an APR and reconstruct a pixel image |
128
+
## Python support
131
129
132
-
Note that you may have to manually change the `sys.path.insert()` statements before `import pyApr` in these scripts to insert your build folder.
130
+
Note: These have been updated and externalised, and will be released shortly.
0 commit comments