Code Monkey home page Code Monkey logo

cell_gui's Introduction

Python GUI for annotating cells

This is still a work in progress and mostly for personal use thus far.

Installation

pip install -r requirements.txt

Usage

Open a 3d image (.tif or .npy) with the GUI using python gui.py "path/to/your/image"
For example: python gui.py "img2.tif". Once in the GUI, you can open previously saved Masks that are saved as npy files. When a button has a keybinding associated with it, it is indicated on the button. Note that you are only working on one cell until you decide to move on to the next one or go to the previous one with the cell counter (<>). That is, you can only add to or erase elements of the current cell. The first image is the xy-view, the second image the xz-view, the third the yz-view. Annotating on the xy-view is recommended, you can then double-check on the other views if there are some inconsistencies. Some useful functions:

Find Cell: Goes to the center of the cell with the highest cell index that was last annotated. Useful if your brain has melted from too much annotation and you want to check if the new color of the brush is different and you are actually working on a new cell or still the old one. It can also help to locate the cell in the other views (xz and yz).

Left click: used for annotating cells; Right click: copy exact coordinates of a cell from one slice. Right clicking again pastes the coordinates of that cell from the last slice (must be the same view). Copy-paste with right-click works regardless of what cell you are working on.

Select Cell: Sometimes you may want to correct an old cell. You can press "S" and then left-click on a cell, which means it is now editable. The "Selected Cell Index" and "Highest Cell Index" reflect that. Once you deselect this button, you will be back to the highest cell index.

Local Contrast Enhancement: In case of a particularly dark/unclear region, you may apply local contrast enhancement. Draw a rectangle on the image after pressing the LCE button, and then press submit. A cuboid in the image volume is now locally enhanced using CLAHE.

All the other functions should be self-explanatory.

cell_gui's People

Contributors

postnubilaphoebus avatar joe311 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.