Giter Site home page Giter Site logo

rharkes / generate-tiff-offsets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hms-dbmi/generate-tiff-offsets

0.0 1.0 0.0 38 KB

Generate tiff offsets for optimized remote viewing

Home Page: https://hms-dbmi.github.io/generate-tiff-offsets

License: MIT License

Python 28.26% Makefile 16.88% HTML 54.86%

generate-tiff-offsets's Introduction

generate-tiff-offsets

A python cli (and web-application) for generating an Image File Directory (IFD) index for TIFFs. See the benchmark from our paper or watch our video explainer to learn more about how our strategy improves random chunk access speeds for OME-TIFF in Viv.

TIFF IFD Index specification

The content of an TIFF IFD Index should match the given description here.

Version 0

Prototype spec for the structure required for TIFF IFD Index (JSON):

[IFD_offset_0, IFD_offset_1, IFD_offset_2, IFD_offset_3, ..., IFD_offset_N]

where IFD_offset_n corresponds to the nth byte-offset for the corresponding Image File Directory in the linear TIFF series.

Note: For OME-TIFF, the ordering of IFDs is determined by the DimensionOrder attribute in the OME-XML metadata. Each combination of C, Z, and T corresponds to one IFD, meaning the total number of IFDs is the product of these dimensions (T x C x Z) and independent of the number of pyramidal resolutions in the OME-TIFF.

๐Ÿ Python CLI

  pip install generate-tiff-offsets
  generate_tiff_offsets --input_file <my_file>.ome.tiff

This command writes the Version 0 Index to the local file system, adjacent to the input TIFF with the file name <my_file>.offsets.json.

Note: โš ๏ธ Our OME-TIFF web-viewer, Avivator expects this naming convension and folder structure in order for the Indexed OME-TIFF to be recognized.

๐ŸŒŽ Web application

Our website requires no installation and can be used to generate the Version 0 index directly in the browser. See our video tutorial for usage instructions.

generate-tiff-offsets's People

Contributors

manzt avatar ilan-gold avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.