neurotorchmz.plugins.pyimage_j.pyimagej#

Functions

Classes

ImageJHandler(session)

Provides a connection between Neurotorch and Fiji/ImageJ using pyimageJ

class neurotorchmz.plugins.pyimage_j.pyimagej.ImageJHandler(session: Session)#

Bases: object

Provides a connection between Neurotorch and Fiji/ImageJ using pyimageJ

IJ_Plugin_Duplicator = None#
OvalRoi = None#
PolygonRoi = None#
RM = None#
Roi = None#
RoiManager = None#
_imageJ_ready()#

Internal callback triggered when ImageJ is successfully loaded

_loading_error_callback(ex: Exception)#

Internal callback on an error when loading ImageJ to reset the start Button

ask_for_imagej_path() None#
export_img(asCopy=False) None#

Export the active image to ImageJ

export_img_diff(asCopy=False) None#

Export the active imageDiff to ImageJ

export_rois_from_roifinder() None#
export_synapses(synapses: list[ISynapse])#

Export ISynapses (and their ROIs) to ImageJ

headless: bool = False#
ij = None#
ij_start_task: Task | None = None#
import_image() Task | None#

Load an image from ImageJ into Neurotorch

import_rois() list[tuple[ISynapseROI, str]] | None#

Import ROIs from ImageJ

import_rois_into_roifinder()#
menu_locate_installation_click()#

Opens a window to locate the installation.

menu_start_imageJ_click() None#

Menu button click for starting Fiji/ImageJ

menu_test_installation_click() None#
on_synapse_tv_context_menu_create(e: SynapseTreeviewContextMenuEvent)#
on_window_loaded(e: WindowLoadedEvent) None#

Creates the GUI elements for this plugin. Is only called from WindowLoadedEvent in GUI mode

open_roi_manager() None#

Opens the ROI Manager

property root: tk.Tk | None#
start_imageJ(headless: bool = False)#
test_for_java() bool#
test_for_maven() bool#
validate_imagej_path() bool#
neurotorchmz.plugins.pyimage_j.pyimagej.on_session_created(e: SessionCreateEvent)#