Module org.bonej.bonej_plugins
Package org.bonej.wrapperPlugins
Class ElementFractionWrapper<T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>>
java.lang.Object
org.scijava.AbstractContextual
org.scijava.command.ContextCommand
org.bonej.wrapperPlugins.BoneJCommand
org.bonej.wrapperPlugins.ElementFractionWrapper<T>
- All Implemented Interfaces:
Runnable,org.scijava.Cancelable,org.scijava.command.Command,org.scijava.Contextual,org.scijava.plugin.SciJavaPlugin
public class ElementFractionWrapper<T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>>
extends BoneJCommand
This command estimates the size of the given sample by counting its
foreground elements, and the whole stack by counting all the elements (bone)
and the whole image stack. In the case of a 2D image "size" refers to areas,
and in 3D volumes. The plugin displays the sizes and their ratio in the
results table. Results are shown in calibrated units, if possible.
- Author:
- Richard Domander, Michael Doube
-
Field Summary
Fields inherited from class org.bonej.wrapperPlugins.BoneJCommand
resultsTable, subspaces -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> net.imglib2.RandomAccessibleInterval<T> get2DSlice(net.imagej.ImgPlus<T> img, int z, int t, int c) voidrun()Methods inherited from class org.bonej.wrapperPlugins.BoneJCommand
find3DSubspacesMethods inherited from class org.scijava.command.ContextCommand
cancel, getCancelReason, isCanceledMethods inherited from class org.scijava.AbstractContextual
context, getContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.scijava.Contextual
setContext
-
Constructor Details
-
ElementFractionWrapper
public ElementFractionWrapper()
-
-
Method Details
-
run
public void run() -
get2DSlice
public static <T> net.imglib2.RandomAccessibleInterval<T> get2DSlice(net.imagej.ImgPlus<T> img, int z, int t, int c)
-