Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 985 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 985 Bytes

TrainingImagesTIFF

Tiff version of various training images used in the literature. Useful for direct use in example codes. Image converted from this repository

To load training images in Matlab

ti=imread('https://raw.githubusercontent.com/GAIA-UNIL/TrainingImagesTIFF/master/{fileName.tiff}')

Replacing {fileName.tiff} with the file of interest.

To load training images in Python3

import numpy
from PIL import Image
import requests
from io import BytesIO

ti = numpy.array(Image.open(BytesIO(requests.get('https://raw.githubusercontent.com/GAIA-UNIL/TrainingImagesTIFF/master/{fileName.tiff}').content)))

#This might not work for 'Damier3D','L7_CHplateau' and 'zinn', instead try
#import tifffile
#ti = tifffile.imread(BytesIO(requests.get('https://raw.githubusercontent.com/GAIA-UNIL/TrainingImagesTIFF/master/{fileName.tiff}').content));;

Replacing {fileName.tiff} with the file of interest.