Skip to content

Instantly share code, notes, and snippets.

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);
}
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
@Yu-AnChen
Yu-AnChen / imageJ_basic_ashlar_ffp_only.py
Last active March 19, 2020 18:28 — forked from jmuhlich/imagej_basic_ashlar.py
ImageJ BaSiC shading correction script for use with Ashlar
# @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.
@Yu-AnChen
Yu-AnChen / composit_color_image.py
Last active May 26, 2020 15:01 — forked from jmuhlich/melanoma_triplet_render.py
Renders RGB JPEG pyramid tiles from OME-TIFF pyramids for the melanoma triplet dataset
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