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.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tiftool-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ecbeb7c7a30ff884504c8746832bff65ef2a59c34a43e3dc2936500406026a7
MD5 b66a02d71d1555da56c2e7368b9b7c33
BLAKE2b-256 c96dd8650651863d369bdf1e66b6d77b3ba8974ae30e93638d7c2457f7563f7c

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