This file contains 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
javascript:(function(){ | |
let infotab = document.getElementById('infoTab').children[0].children[2]; | |
let channels = infotab.children[0].children[1].children[0].lastElementChild.textContent.trim().split(', '); | |
let channelsliders = document.getElementById('channel_sliders').children[0]; | |
for(i=0;i<channels.length;i++) { | |
let p = document.createTextNode(channels[i]); | |
let br = document.createElement('br'); | |
channelsliders.children[i].insertBefore(br,channelsliders.children[i].firstChild); | |
channelsliders.children[i].insertBefore(p,channelsliders.children[i].firstChild); | |
} |
This file contains 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 argparse | |
import json | |
import sys | |
from omero.gateway import BlitzGateway | |
from omero.cli import cli_login | |
from omero.model import StatsInfoI | |
from omero.rtypes import rdouble |
This file contains 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
# @File(label="Select a slide to process") filename | |
# @File(label="Select the output location", style="directory") output_dir | |
# @String(label="Experiment name (base name for output files)") experiment_name | |
# @Float(label="Flat field smoothing parameter (0 for automatic)", value=0.1) lambda_flat | |
# @Float(label="Dark field smoothing parameter (0 for automatic)", value=0.01) lambda_dark | |
# Takes a slide (or other multi-series BioFormats-compatible file set) and | |
# generates flat- and dark-field correction profile images with BaSiC. The | |
# output format is two multi-series TIFF files (one for flat and one for dark) | |
# which is the input format used by Ashlar. |
This file contains 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 numpy as np | |
from matplotlib import colors | |
from matplotlib import pyplot as plt | |
from PIL import Image | |
def composite_channel(target, image, color, range_min, range_max): | |
''' Render _image_ in pseudocolor and composite into _target_ | |
Args: | |
target: Numpy float32 array containing composition target image |