Glencoe has released a statement regarding the conversion of complex formats to pyramidal ome.tiff
== The full post is here ==
https://www.glencoesoftware.com/blog/2019/12/09/converting-whole-slide-images-to-OME-TIFF.html
== Workflow Summary ==
The Glencoe protocol describes a two-step process.
1. Convert vendor data to 'raw' data using `bioformats2raw`
2. Convert 'raw' data to ome.tiff using `raw2ometiff`
The need for the two separate protocols seems to stem from licensing and dependencies on separate vendor-specific libraries.
== Advantages ==
All reading and writing is streamed to the disk in parallel, making this the fastest conversion tool available. On a test with one RGB dataset in .mrxs format, it went from ~4h using [[ https://github.com/BIOP/ijp-kheops | KHEOPS ]] to about 10 minutes using these two tools.
=== Installation == =
NOTE: Because this protocol makes use of very modern file storage and compression systems, there is a dependency on a tool called `c-blosc`, and there is some compilation to do.
== Installing `c-blosc` on windows ==
Follow the procedure described in https://github.com/glencoesoftware/bioformats2raw
On windows this means downloading the dll build for Fiji and setting the environment variable. Check the above mentioned documentation.
===== Installing `c-blosc` ==bioformats2raw` ===
=== Dependencies ===Unzip this somewhere
**Download **[[ https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019 | Build Tools for Visual Studio 2019 ]]https://github.com/glencoesoftware/bioformats2raw/releases
=== Installing `raw2ometiff` ===
Install the packagesUnzip this somewhere
- `MSVC v142 - VS 2019 C++ x64/x86 build tools`https://github.com/glencoesoftware/raw2ometiff/releases
=== Adding to the PATH ===
- `Windows 10 SDK (10.0.18362.0)`Add the two unzipped `bin` folders to your path so you can call these two functions from anywhere
**Download **[[ https://cmake.org/download/ | CMake ]] (msi installer) and install== Using this workflow with checking `Add CMAKE Path to all users`.hin Fiji ==
NOTE: If you followed the StarDist with gpu-tools installation, you have all the prerequisites except for [[ https://cmake.org/download/ | CMake ]]. Otherwise please follow the installation of the [[ bioimaging_and_optics_platform_biop/computers-servers/software/gpu-deep-learning/#stardist-prerequisites | StarDist Prerequisites ]]You can use the [bf2ometiff gist](https://gist.github.com/NicoKiaru/15e8d39d4d18174a22402c2ca939bb81) and click batch to batch convert your files.
=== Installation ===
1. Clone https://github.com/Blosc/c-blosc
2. Create a folder in your `C:\` drive called `Dev Tools`== Using This workflow with the command line ==
Example: Dataset called `D:\ToConvert\Kidney.mrxs` which is RGB
```
2. Open a command line and do the following bioformats2raw.bat --resolutions=4 D:\ToConvert\Kidney.mrxs D:\ToConvert\Kidney
```
cd c-blosc
mkdir build
Other arguments are available with bioformats2raw.bat --help
Converting to OME.TIFF
cmake -DCMAKE_INSTALL_PREFIX="C:\Dev Tools"```
cmake --build . --target installraw2ometiff.bat --compression="JPEG-2000" --rgb D:\ToConvert\kidney D:\ToConvert\Kidney.ome.tiff
```
=== Installing `bioformats2raw` ===
Unzip this somewhere
https://github.com/glencoesoftware/bioformats2raw/releases
=== Installing `raw2ometiff`IMPORTANT: RGB images must be explictely concerted using the `--rgb` flag. Otherwise it will be a 3 channel image.
----
== Installing `c-blosc` from source ==
=== Dependencies ===
Unzip this somewhere**Download **[[ https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019 | Build Tools for Visual Studio 2019 ]]
https://github.com/glencoesoftware/raw2ometiff/releases
=== Adding to the PATH ===Install the packages
- `MSVC v142 - VS 2019 C++ x64/x86 build tools`
Add the two unzipped `bin` folders to your path so you can call these two functions from anywhere- `Windows 10 SDK (10.0.18362.0)`
== Using This workflow ==
Example: Dataset called `D:\ToConvert\Kidney.mrxs` which is RGB**Download **[[ https://cmake.org/download/ | CMake ]] (msi installer) and install with checking `Add CMAKE Path to all users`.
NOTE: If you followed the StarDist with gpu-tools installation, you have all the prerequisites except for [[ https://cmake.org/download/ | CMake ]]. Otherwise please follow the installation of the [[ bioimaging_and_optics_platform_biop/computers-servers/software/gpu-deep-learning/#stardist-prerequisites | StarDist Prerequisites ]]
```=== Installation ===
1. Clone https://github.com/Blosc/c-blosc
bioformats2raw.bat --resolutions=4 D:\ToConvert\Kidney.mrxs D:\ToConvert\Kidney2. Create a folder in your `C:\` drive called `Dev Tools`
```2. Open a command line and do the following
Other arguments are available with bioformats2raw.bat --help
Converting to OME.TIFF```
cd c-blosc
```mkdir build
raw2ometiff.bat --compression="JPEG-2000" --rgb D:\ToConvert\kidney D:\ToConvert\Kidney.ome.tiffcmake -DCMAKE_INSTALL_PREFIX="C:\Dev Tools"
```
IMPORTANT: RGB images must be explictely concerted using the `--rgb` flag. Otherwise it will be a 3 channel image.cmake --build . --target install
```