This project provides a simple GUI application built with Tkinter for viewing multi-frame TIFF files. The application allows users to open a TIFF file, navigate through its frames, and perform basic interactions such as selecting regions of interest (ROI).
There's also a Windows executable built with pyinstaller.
-
Drag and drop support for opening TIFF files.
-
Navigation through multi-frame TIFF files, with display of the selected frame.
To run this project, ensure you have the following dependencies installed:
-
Python 3.x -
tkinter -
tkinterdnd2 -
tifffile -
numpy -
matplotlib
You can install the required dependencies using:
pip install tkinterdnd2 tifffile numpy matplotlib
Installation
Clone this repository and navigate into the project directory:
git clone https://github.com/yourusername/tiff-viewer-tkinter.git
cd tiff-viewer-tkinter
Run the application using:
python main.py
To package the application as an executable using PyInstaller:
pyinstaller -F -w main.py --additional-hooks-dir=.
This will generate an executable that can be run without needing Python installed.
When using PyInstaller, ensure you include the hook-tkinterdnd2.py file to correctly collect the required binaries.
Large TIFF files may take time to load and require sufficient memory.