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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tiftool-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a94879391a06e5208620733b1351084f37473faed177597ac3a7f9e356e84da3
MD5 65d41951dba8bda218d65fc9a3ae2f7f
BLAKE2b-256 6970ac853da4accffa407e2d266359caf11f92d6b6e8983ac6ca905ea7c5cabd

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