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
#@ OpService ops | |
#@ ImgPlus beads | |
#@OUTPUT ImgPlus thresholded | |
#@OUTPUT ImgPlus points | |
#@OUTPUT ImgPlus psf | |
from net.imglib2.algorithm.labeling.ConnectedComponents import StructuringElement | |
from net.imglib2.roi.labeling import LabelRegions | |
# reference |
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
package com.example; | |
import java.io.IOException; | |
import net.imagej.Dataset; | |
import net.imagej.ImageJ; | |
import net.imagej.ImgPlus; | |
import net.imagej.ops.filter.pad.PadInputFFTMethods; | |
import net.imglib2.RandomAccessibleInterval; |
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
#@ OpService ops | |
#@ UIService ui | |
#@ ImgPlus img | |
#@ Integer numIterations(value=20) | |
#@ Float numericalAperture(value=0.25) | |
#@ Float wavelength(value=705) | |
#@ Float riImmersion(value=1.00) | |
#@ Float riSample(value=1.5) | |
#@ Float xySpacing(value=570) | |
#@ Float zSpacing(value=1700) |
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
for i=1:365 | |
% let's simulate 1000 times | |
for j=1:1000 | |
% make a vector of random numbers (1 to 365) i times | |
test=randi(365,[1 i]); | |
% test if there is a duplicate | |
dupbirthday(i,j)=~(length(test) == length(unique(test))); | |
end | |
end |
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
package com.example; | |
import net.imagej.ImageJ; | |
import net.imagej.ops.deconvolve.RichardsonLucyF; | |
import net.imagej.ops.filter.convolve.ConvolveFFTF; | |
import net.imglib2.Point; | |
import net.imglib2.RandomAccessibleInterval; | |
import net.imglib2.algorithm.region.hypersphere.HyperSphere; | |
import net.imglib2.img.Img; | |
import net.imglib2.img.array.ArrayImgFactory; |
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
package com.tnia.commands; | |
import net.imagej.ImgPlus; | |
import net.imagej.ops.OpService; | |
import net.imagej.ops.special.computer.BinaryComputerOp; | |
import net.imglib2.IterableInterval; | |
import net.imglib2.RandomAccessibleInterval; | |
import net.imglib2.histogram.Histogram1d; | |
import net.imglib2.realtransform.AffineTransform2D; | |
import net.imglib2.type.NativeType; |
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
package net.imagej.ops.experiments.equation; | |
import net.imagej.ImageJ; | |
import net.imglib2.FinalDimensions; | |
import net.imglib2.type.numeric.real.DoubleType; | |
public class InteractiveEquationTest { | |
final static ImageJ ij = new ImageJ(); |
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
public class InteractiveDeconvolveTheoreticalTest<T extends RealType<T> & NativeType<T>> { | |
final static ImageJ ij = new ImageJ(); | |
public static <T extends RealType<T> & NativeType<T>> void main(final String[] args) throws IOException { | |
String libPathProperty = System.getProperty("java.library.path"); | |
System.out.println("Lib path:" + libPathProperty); | |
ij.launch(args); |
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
// @OpService ops | |
// @UIService ui | |
// @ConvertService convert | |
// @DatasetService data | |
import net.imglib2.type.numeric.real.FloatType; | |
import net.imagej.ops.Op | |
import net.imglib2.outofbounds.OutOfBoundsConstantValueFactory | |
import net.imagej.ops.deconvolve.RichardsonLucyF | |
import net.imglib2.util.Util |