This is an implementation of NeuronJ work with python.

Overview

NeuronJ

This is an implementation of NeuronJ work with python. NeuronJ is a plug-in for ImageJ that allows you to create and edit neurons masks.


Why We Made It

Since we are not a neuroscientist, we wanted to make a tool that would be useful for our research, would be easy to use, and would be easy to modify. But the main reason we made it was if you want to process a lot of data and you want to create a mask for each image and save them, it could take a lot of your time with NeuronJ and ImageJ.

You may say ImageJ can be fast with scripts, But it isn't. It will not help you to do everything. So due to the lack of time, we made this.

How to use

Step 1: prepare the data

For this step, your Raw data folder should contain the following files:

For each sample:

  • sample_name.tif
  • sample_name.ndf

Notes:

  • The name of the image and mask (trace) sample should be the same as each other.
  • '.ndf' file must be in the same format as NeuronJ format.
  • This folder is your Raw data folder.

Step 2: Where to save the data

Consider where you want to save your data. Don't worry, we do all the work for you and creat folders for you. Just tell us where.

The folling folders will be created:

  • Output folder you specified
  • Output folder for images as images
  • Output folder for masks as masks
  • Output folder for image and masks together as image_mask

Notes:

  • image_mask: the mask will be on the image for show case.

Step 3: Run the script

You just need to replace the path of your Raw data folder and the output folder in the script. Our default path is:

  • Raw data folder: "./data/rawData/"
  • Output folder: "./data/dataSet/"
NeuronJ(data_addr:str, 
        output_dir:str,
        image_dir_name:str = 'images', 
        mask_dir_name:str = 'masks', 
        image_ext:str = '.tif', 
        mask_ext:str = '.tif',
        colorize:bool = True,
        show_result:bool = False)

Features

  • Save results as every image format. Default is TIFF (.tif).
  • Show the mask on the image.
  • Colorize the mask. It can be black and white or colorful.
  • Easy to modify the script as you need.
  • Perfect documentation. Easy to undrestand. Easy to use.
  • Quickly and good performance.
  • Functional with good representation.

Support

Please feel free to contact us if you have any questions. If you have any problem or idea, please leave us an issue on Github.

If you enjoyed it, I appreciate it if you bless us with your star. Thank you for your support.

To Do

  • Add some samples (.ndf files, images and masks) for represent the work.
You might also like...
Research on how Gboard Stickers work.
Research on how Gboard Stickers work.

Google-Sticker-Mashup-Research Research on how Gboard Stickers work. Contribute Contributing is nice, and you will be listed below for contributing. C

Blender Light Manipulation - A script that makes it easier to work with light
Blender Light Manipulation - A script that makes it easier to work with light

Blender Light Manipulation A script that makes it easier to work with light 1. Wstฤ™p W poniลผszej dokumentacji przedstawiony zostanie skrypt, ktรณry swo

Script to work around some quirks of the blender obj importer

ObjFix 1.0 (WIP) Script to work around some quirks of the blender obj importer Installation Download this repo In Blender, press "Edit" on the top-bar

This is a small compiler to demonstrate how compilers work.

This is a small compiler to demonstrate how compilers work. It compiles our own dialect to C, while being written in Python.

An attempt at furthering Factorio Calculator to work in more general contexts.

factorio-optimizer Lets do Factorio Calculator but make it optimize. Why not use Factorio Calculator? Becuase factorio calculator is not general. The

A rough GSL work DynSAGE of my graduation project

DynSAGE Codes w.r.t DynSAGE-Diffuse can be found in function apply_dyn_model_v2 of src/utils.py. The training entrance is Line 144 - 155 of src/main.p

A Microsoft reward automator, designed to work headless on a raspberry pi

MsReward A Microsoft reward automator, designed to work headless on a raspberry pi. Tested with a pi 3b+ and a pi 4 2Gb . Using a discord bot to log e

Collection of tools to be more productive in your work environment and to avoid certain repetitive tasks. ๐Ÿ’›๐Ÿ’™๐Ÿ’š
Collection of tools to be more productive in your work environment and to avoid certain repetitive tasks. ๐Ÿ’›๐Ÿ’™๐Ÿ’š

Collection of tools to be more productive in your work environment and to avoid certain repetitive tasks. ๐Ÿ’›๐Ÿ’™๐Ÿ’š

NUM Alert - A work focus aid created for the Hack the Job hackathon

Contributors: Uladzislau Kaparykha, Amanda Hahn, Nicholas Waller Hackathon Team Name: N.U.M General Purpose: The general purpose of this program is to

Releases(v0.1.0)
Owner
Mohammad Mahdi Samei
M.Sc. student of artificial intelligence. I'm a UX strategist, data scientist, and image processing specialist. Looking forward to working with you.
Mohammad Mahdi Samei
Python module to work with Magneto Database directly without using broken Magento 2 core

Python module to work with Magneto Database directly without using broken Magento 2 core

Egor Shitikov 13 Nov 10, 2022
Make after-work Mending More flexible In Python

Mending Make after-work Mending More flexible In Python A Lite Package focuses on making project's after-post mending pythonic and flexible. Certainly

null 2 Jun 15, 2022
A Python Perforce package that doesn't bring in any other packages to work.

P4CMD ?? A Python Perforce package that doesn't bring in any other packages to work. Relies on p4cli installed on the system. p4cmd The p4cmd module h

Niels Vaes 13 Dec 19, 2022
A Python 3 client for the beanstalkd work queue

Greenstalk Greenstalk is a small and unopinionated Python client library for communicating with the beanstalkd work queue. The API provided mostly map

Justin Mayhew 67 Dec 8, 2022
A project to work with databases in 4 worksheets, insert, update, select, delete using Python and MySqI

A project to work with databases in 4 worksheets, insert, update, select, delete using Python and MySqI As a small project for school or college hope it is useful

Sina Org 1 Jan 11, 2022
Your copilot to studies and work (Pomodoro-timer, Translate and Notes app)

Copylot Your copilot to studies and work (Pomodoro-timer, Translate and Notes app) Copylot are three applications in one: Pomodoro Translate Notes Cop

Eduardo Mendes 20 Dec 16, 2022
A step-by-step tutorial for how to work with some of the most basic features of Nav2 using a Jupyter Notebook in a warehouse environment to create a basic application.

This project has a step-by-step tutorial for how to work with some of the most basic features of Nav2 using a Jupyter Notebook in a warehouse environment to create a basic application.

Steve Macenski 49 Dec 22, 2022
A Puzzle A Day Keep the Work Away

A Puzzle A Day Keep the Work Away No moyu again!

P4SSER8Y 5 Feb 12, 2022
โœ”๏ธ Create to-do lists to easily manage your ideas and work.

Todo List + Add task + Remove task + List completed task + List not completed task + Set clock task time + View task statistics by date Changelog v 1.

Abbas Ataei 30 Nov 28, 2022
Comics/doujinshi reader application. Web-based, will work on desktop and tablet devices with swipe interface.

Yomiko Comics/doujinshi reader application. Web-based, will work on desktop and tablet devices with swipe interface. Scans one or more directories of

Kyubi Systems 26 Aug 10, 2022