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
macro "Ratiometric FRET" { | |
path = getDirectory("Choose a Directory"); | |
list = getFileList(path); | |
length = list.length; | |
File.makeDirectory(path + "Imaging/"); | |
//FRET map creation |
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
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0 | |
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release | |
error importing site | |
Traceback (most recent call last): | |
File "/Users/miura/.m2/repository/org/scijava/jython-shaded/2.5.3/jython-shaded-2.5.3.jar/site$py.class", line 62, in <module> | |
File "/Users/miura/.m2/repository/org/scijava/jython-shaded/2.5.3/jython-shaded-2.5.3.jar/os$py.class", line 50, in <module> | |
java.lang.ArrayIndexOutOfBoundsException: 8 | |
at org.python.objectweb.asm.ClassReader.a(Unknown Source) | |
at org.python.objectweb.asm.ClassReader.accept(Unknown Source) | |
at org.python.objectweb.asm.ClassReader.accept(Unknown Source) |
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("Blobs (25K)"); | |
run("Radial Profile Angle", | |
"x_center=127.50 y_center=127.50 radius=127.50 starting_angle=0 integration_angle=180"); | |
run("Clear Results"); | |
for(j = 0; j < Ext.getBinSize; j++){ | |
setResult("Radius", j, Ext.getXValue(j)); | |
setResult("Intensity", j, Ext.getYValue(0, j)); | |
} | |
updateResults(); | |
saveAs("results", ""); |
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
# subtract mean | |
from ij import IJ | |
from ij.process import ImageStatistics as IS | |
#import math | |
imp = IJ.getImage() | |
stack = imp.getStack() | |
#stat = IS() | |
for i in range(stack.getSize()): | |
ip = stack.getProcessor(i + 1) |
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
from com.sun.j3d.utils.universe import SimpleUniverse | |
from com.sun.j3d.utils.geometry import ColorCube | |
from javax.media.j3d import BranchGroup | |
universe = SimpleUniverse() | |
group = BranchGroup() | |
group.addChild(ColorCube(0.3)) | |
universe.getViewingPlatform().setNominalViewingTransform() | |
universe.addBranchGraph(group) |
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
cc=0; | |
for(k=0; k<nSlices; k++) | |
for(j=0;j<getHeight();j++) | |
for(i=0;i<getWidth();i++) | |
{setSlice(k+1);if(getPixel(i,j)>0)cc++;} | |
print("non-0:" + cc); |
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
function onOpen() { | |
var menuEntries = [ {name: "Create Diary Doc from Sheet", functionName: "createDocFromSheet"}]; | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
ss.addMenu("Fitness Diaries", menuEntries); | |
} | |
function createDocFromSheet(){ | |
var templateid = "1O4afl8SZmMxMFpAiN16VZIddJDaFdeRBbFyBtJvepwM"; // get template file id | |
var FOLDER_NAME = "Fitness Diaries"; // folder name of where to put completed diaries | |
// get the data from an individual user |
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
// *** Start: White balance *** | |
name=getTitle(); | |
run("Split Channels"); | |
MeanColor=newArray(3); | |
maxi = 0; | |
for (u=1; u<4; u++) { | |
selectWindow("C"+u+"-"+name); | |
makeRectangle(100,100,100,100); | |
// waitForUser("Please draw a region in the background"); |
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
scale = 0.083; // マイクロメータ/ピクセル | |
dt = 3; // 秒/フレーム | |
path = File.openDialog("Select a File"); | |
str = File.openAsString(path); | |
strA = split(str, "\n"); | |
// データ格納用の配列の用意 | |
dispA = newArray(strA.length - 13); | |
intdispA = newArray(strA.length - 13); |
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
''' | |
Tiff file resolution checker | |
''' | |
from ij.io import TiffDecoder | |
from ij.io import DirectoryChooser | |
from ij import IJ | |
import os | |
def xresGetter(d, filename): |