Skip to content

Instantly share code, notes, and snippets.

View oeway's full-sized avatar

Wei Ouyang oeway

  • Science For Life Laboratory
  • Stockholm
View GitHub Profile
import sys
import os
import errno
import time
import json
import glob
from base64 import b64decode
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
@oeway
oeway / zoom_movie_ImageJ_v2a.ijm
Created October 7, 2020 09:21 — forked from aaristov/zoom_movie_ImageJ_v2a.ijm
Improved ImageJ macro making a movie (stack) of zooming on selected rectangle (ROI) now with logarithmic approach and dynamic scalebar
//ImageJ macro making a movie (stack) of zooming on selected rectangle (ROI)
//v2 Eugene Katrukha katpyxa at gmail.com
//v2a Andrey Aristov: aaristov at pasteur.fr
requires("1.48h");
//check if there is rectangular selection
if(selectionType() ==0)
{
sTitle=getTitle();
sMovieTitle=sTitle+"_zoom_movie";
<config lang="json">
{
"name": "ITK-VTK-Viewer",
"type": "web-worker",
"tags": [],
"ui": "",
"version": "0.1.2",
"cover": "",
"description": "This Plugin uses itk-vtk-viewer to visualize images in ImageJ.JS",
"icon": "extension",
from imjoy import api
import pyclesperanto_prototype as cle
from skimage.io import imread, imsave, imshow
import matplotlib
import numpy as np
class ImJoyPlugin():
async def setup(self):
<config lang="json">
{
"name": "OpenCVSegmentation",
"type": "window",
"tags": [],
"ui": "",
"version": "0.1.0",
"cover": "",
"description": "This is a demo plugin for segmenting images with OpenCV.js",
"icon": "extension",
<docs lang="markdown">
[TODO: write documentation for this plugin.]
</docs>
<config lang="json">
{
"name": "SimpleIVVewer",
"type": "window",
"tags": [],
"ui": "",
<config lang="json">
{
"name": "MicroManagerControl",
"type": "native-python",
"version": "0.1.0",
"description": "Microscope control with MicroManager(pymmcore)",
"tags": [],
"ui": "",
"cover": "",
"inputs": null,
<docs>
[TODO: write documentation for this plugin.]
</docs>
<config lang="json">
{
"name": "WebPythonWorker",
"type": "web-worker",
"tags": [],
"ui": "",
<config lang="json">
{
"name": "ImJoyGridDemo",
"type": "native-python",
"editor_height": "400px",
"lang": "python",
"api_version": "0.1.8",
"description": "A demo plugin to show case ImJoy Grid with vizarr, folder tree and schema form.",
"tags": [],
"version": "0.1.1",
@oeway
oeway / LoopDemo.py
Last active December 26, 2020 19:57
import js
import asyncio
from webloop import WebLoop
# set the event loop explicitly
loop = WebLoop()
asyncio.set_event_loop(loop)
# or get the event loop directly
# loop = asyncio.get_event_loop()