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("Bandpass Filter...", "filter_large=100 filter_small=5.1 suppress=None tolerance=5 autoscale process"); | |
for(i=1;i<nSlices + 1;i++){ | |
setSlice(i); | |
getStatistics(area, mean, min, max, std, histogram); | |
setThreshold(mean + 2 * std, 255); | |
run("Make Binary", "slice"); | |
} |
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
roiManager("Show All"); | |
run("Remove Overlay"); | |
for (i=0; i<roiManager("count"); i++){ | |
roiManager("select",i); | |
roiManager("Measure"); | |
x=getResult("X"); | |
y=getResult("Y"); | |
z=getResult("Slice"); | |
for (j=-14; j<14; j++){ | |
setSlice(z+j); |
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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"> | |
</script> | |
<script> | |
$(document).ready(function(){ | |
var all_cells = $("div.cell"); | |
$.each(all_cells, function( index, value ) { | |
if ($(value).find("h1").length == 0){ | |
$(value).hide() | |
} else{ | |
var bare_h1 = $(value).find("h1").text() |
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
# Copyright: Luis Pedro Coelho <[email protected]>, 2012 | |
# License: MIT | |
import numpy as np | |
def read_roi(fileobj): | |
''' | |
points = read_roi(fileobj) | |
Read ImageJ's ROI format | |
''' |