Skip to content

Files used to test OME-TIFF images for BIDS-microscopy

License

Notifications You must be signed in to change notification settings

axondeepseg/ometiff-tests

Repository files navigation

ometiff-tests

This repository contains the files used to test OME-TIFF images for BIDS-microscopy. The NDPI and the OME-TIFF test images are respectively sample data from OME downloads (https://downloads.openmicroscopy.org/images/Hamamatsu-NDPI/manuel/) and documentation (https://docs.openmicroscopy.org/ome-model/5.6.3/ome-tiff/data.html). These images have been used under Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). No change was made to the original images.

Python packages installation

The following procedure describes how to install the Python packages used for the ometiff-tests notebook. These packages are useful to read, write OME-TIFF and convert different types of file to OME-TIFF.

1. Install the Python package tifffile

2. Install the library libvips

3. Import the packages in Python

  • Open the Python file you’re working on in your code editor (ex: VS Code)
  • For tifffile, simply incorporate import tifffile in your code
  • For libvips, add the lines:
from ctypes import *
cdll.LoadLibrary("C:/.../vips-dev-X.Y/bin/libgobject-2.0-0.dll")
cdll.LoadLibrary("C:/.../vips-dev-X.Y/bin/libvips-42.dll")
import pyvips

Where C:/.../vips-dev-X.Y represents the path to where you saved the previous folder (see above). Without the three lines before import pyvips, you may get an OSError because the libraries can’t be found.

Tested with Visual Studio Code 1.57.1 with Python 3.9.2 on Windows10

About

Files used to test OME-TIFF images for BIDS-microscopy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published