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
/* FPS bookmarklet that also shows the current average | |
* Forked from mrdroob/stats | |
*/ | |
javascript:(function(){ | |
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | |
typeof define === 'function' && define.amd ? define(factory) : | |
(global.Stats = factory()); | |
}(this, (function () { 'use strict'; |
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 logging | |
from pathlib import Path | |
import webknossos as wk | |
from webknossos.annotation import Annotation | |
from webknossos.dataset import MagView | |
from webknossos.geometry import BoundingBox, Mag | |
def merge_with_fallback_layer( | |
output_path: Path, |
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
async function applyMapping(api) { | |
const trees = api.tracing.getAllTrees(); | |
const currentTreeId = api.tracing.getActiveTreeId(); | |
const currentTree = trees[currentTreeId]; | |
const segmentationName = api.data.getVolumeTracingLayerName() | |
const cellIdSet = new Set() | |
for (const node of currentTree.nodes.values()) { | |
const cellId = await api.data.getDataValue(segmentationName, node.position); |
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
window.webknossos.apiReady(3).then(async (api) => { | |
api.utils.registerKeyHandler("8", () => { alert("You pressed 8"); }); | |
}); |
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
window.webknossos.apiReady(3).then(async (api) => { | |
api.utils.registerKeyHandler("7", () => { alert("You pressed 7"); }); | |
}); |
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
window.webknossos.apiReady(3).then(async (api) => { | |
const welcomeMessage = | |
`Mr. Motta and Mr. Boergens proudly present | |
The webKnossos Merger Mode Suite (version 23.04.2017) | |
[8] Shuffles segmentation color of current tree | |
[9] Toggles segment opacity | |
[right-click] Adds node and makes segment pink | |
[delete] Removes node and restores original segment color |
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
window.webknossos.apiReady(2).then(async (api) => { | |
const welcomeMessage = | |
`Mr. Motta and Mr. Boergens proudly present | |
The webKnossos Merger Mode Suite | |
[8] Shuffles segmentation color of current tree | |
[9] Toggles segment opacity | |
[right-click] Adds node and makes segment pink | |
[delete] Removes node and restores original segment color |
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
git config --global alias.l "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |