Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run the macro in fiji headlessly using Xvfb | |
| # to avoid errors due to gui dependencies. | |
| export DISPLAY=:1 | |
| Xvfb $DISPLAY -auth /dev/null & | |
| ( | |
| # the ’(’ starts a new sub shell. In this sub shell we start the worker processes: | |
| java -Xmx6000m -cp jars/ij-1.51l-SNAPSHOT.jar ij.ImageJ -headless --console \ | |
| -macro separate_nuclei.ijm \ | |
| "input=$1, output=$2, scale_factor=$3" | |
| wait # waits until all ’program’ processes are finished |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Separate Nuclei | |
| * | |
| * Use image scaling and binary watershed to separate the nuclei in the image | |
| * | |
| * written 2013 by Volker Baecker (INSERM) at Montpellier RIO Imaging (www.mri.cnrs.fr) | |
| * | |
| * This has been created from | |
| * http://dev.mri.cnrs.fr/projects/imagej-macros/wiki/Separate_Nuclei_Tool | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Play pong on the FIJI example images. | |
| * | |
| */ | |
| var _WIDTH = 800; | |
| var _HEIGHT = 600; | |
| var _X_PADDLE = 50; | |
| var _Y_PADDLE = _HEIGHT / 2; | |
| var _WIDTH_PADDLE = 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cytomine | |
| import sys | |
| #Connect to cytomine, edit connection values | |
| cytomine_host="my-host" # Cytomine core URL | |
| cytomine_public_key="my-public-key" # Your public key | |
| cytomine_private_key="my-private-key" # Your private key | |
| id_project=my-project-id | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import os | |
| from cytomine import Cytomine | |
| from cytomine.models import * | |
| from subprocess import call | |
| from skimage import io | |
| import numpy as np | |
| from sldc import locator | |
| from sldc.locator import affine_transform | |
| from shapely.ops import cascaded_union |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run the metrics-macro in ImageJ headlessly using Xvfb to avoid errors due to ImageJ1 gui dependencies. | |
| export DISPLAY=:1 | |
| Xvfb $DISPLAY -auth /dev/null & | |
| ( | |
| # the '(' starts a new sub shell. In this sub shell we start the worker processes: | |
| java -Xmx6000m -cp jars/ij-1.51l-SNAPSHOT.jar ij.ImageJ -headless --console -macro IJSegmentClusteredNuclei.ijm "input=$1, output=$2, radius=$3, threshold=$4" | |
| wait # waits until all 'program' processes are finished | |
| # this wait sees only the 'program' processes, not the Xvfb process |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Author: Sébastien Tosi (IRB Barcelona) | |
| // modified by Volker Bäcker to make it run | |
| // in batch mode, reading parameters from the command line | |
| // | |
| // The macro will segment nuclei and separate clustered nuclei | |
| // using a binary watershed. As a result an index-mask image is | |
| // written for each input image. | |
| // Use FIJI to run the macro with a command similar to | |
| // java -Xmx6000m -cp jars/ij.jar ij.ImageJ -headless --console -macro IJSegmentClusteredNuclei.ijm "input=/media/baecker/donnees/mri/projects/2017/liege/in, output=/media/baecker/donnees/mri/projects/2017/liege/out, radius=5, threshold=-0.5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // For all images in a folder, extract the middle slice and save it into a | |
| // subfolder. | |
| // | |
| // Written 2017 by Volker Baecker, Montpellier Ressources Imagerie | |
| var _FILE_EXTENSION = ".tif"; | |
| setBatchMode(true); | |
| dir = getDirectory("Select the input folder!"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run the metrics-macro in ImageJ headlessly using Xvfb to avoid errors due to ImageJ1 gui dependencies. | |
| export DISPLAY=:1 | |
| Xvfb $DISPLAY -auth /dev/null & | |
| ( | |
| # the '(' starts a new sub shell. In this sub shell we start the worker processes: | |
| java -Xmx6000m -cp jars/ij-1.51h.jar ij.ImageJ -headless --console -macro metrics.ijm "plugin=$1, dir=$2, table=/fiji/data/in/Results.xls" | |
| wait # waits until all 'program' processes are finished | |
| # this wait sees only the 'program' processes, not the Xvfb process |
NewerOlder