Skip to main content

tiftool

Project description

tiftool: A Python package for Microscopy tif images

The package for dealing tif stack image. Oriented for Microscopy image, offering useful processing. Under construction, I'll make description site and more functions, maybe for 2020.08.

Concept

Stack object

Main concept of tiftool is Stack object. This object carries your 3d data from .tif file as 'torch.Tensor' or 'numpy.ndarray'. By using stack object, you can conduct numerous processes; MIP(Maximum Intensity Projection), Find center z-plane, etc. This package is made to help research, Fluorescent Microscopy(WideField, XLFM(eXtended field of view LFM), etc).

HyperStack object

Under construction Similar as ImageJ, I'll make HyperStack object which can consider 'time'. It will contain 4-D data, (T, X, Y, Z).

Installation

pip

tiftool can installed via pip. Simply run this code by terminal.

pip install tiftool

Latest version is 0.1.5. If you have older version of tiftool, run this code to update. I strongly recommend to use latest version.

pip install tiftool -U

Running tiftool

Basic things using stack object

import tiftool.stack as st

larva = st.Stack().open("larva.tif").to_tensor()  # Change to torch.tensor, default data is numpy array.
raw_data = larva._data  # You can access the raw data inside Stack() object.
print(raw_data.size())  # torch.size([1098, 890, 64]) (x, y, z)

MIP = larva.mip_3d()  # Return Maximum Intensity Project for x, y, z axis
MIP.show()  # Show image using matplotlib
MIP.write("mip_larva.tif")  # write at your input path

See tiftool docs for more details. (Not constructed)

Issues & Contribution

I appreciate for all issues and contributions. You can use 'issues' tab, 'Pull request' tab, or e-mail me! I want to develop this package as a powerful toolkit for microscopy data researcher and if you mind, contribute with me! :smiley:

LICENSE

This package follows MIT LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tiftool-0.2.4-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file tiftool-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: tiftool-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0.post20200511 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for tiftool-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7a2a616dce3ca9f390ef8c5d0f465802d47565c8f7b5ff503673b56900c6b37c
MD5 cc17a9b11c85e1211cea4a054b2b83b8
BLAKE2b-256 19216bc2b4289065fe229b5ddcae7607c3f6fd9a1ef606f9e6c89c6620fb20f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page