public class CustomOpEnvironment extends AbstractContextual implements OpEnvironment
| Constructor and Description |
|---|
CustomOpEnvironment(Context context)
Creates an empty op context.
|
CustomOpEnvironment(OpEnvironment parent)
Creates an op context with the same configuration as the given parent
environment.
|
CustomOpEnvironment(OpEnvironment parent,
Collection<? extends OpInfo> infos)
Creates an op context with the same configuration as the given parent
environment, plus the specified additional ops.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxThreads()
Gets the maximum number of threads any single op is allowed to use.
|
OpInfo |
info(Class<? extends Op> type)
Gets the metadata for a given
Op class. |
Collection<OpInfo> |
infos()
The available ops for the context, including those of the parent.
|
OpMatchingService |
matcher() |
<NS extends Namespace> |
namespace(Class<NS> nsClass)
Gets the namespace of the given class.
|
OpEnvironment |
parent()
The parent context, if any.
|
void |
setMaxThreads(int maxThreads)
Sets the maximum number of threads any single op is allowed to use.
|
context, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcoloc, convert, copy, create, deconvolve, eval, eval, filter, geom, haralick, help, help, help, help, help, help, help, identity, image, imagemoments, info, join, join, join, join, join, join, labeling, lbp, linalg, logic, loop, loop, map, map, map, map, map, map, map, map, map, map, map, map, map, map, map, map, map, map, map, map, map, map, map, map, math, module, module, module, morphology, op, op, op, op, ops, run, run, run, run, slice, slice, stats, tamura, thread, threshold, topology, transform, zernikecontext, getContext, setContextpublic CustomOpEnvironment(Context context)
public CustomOpEnvironment(OpEnvironment parent)
public CustomOpEnvironment(OpEnvironment parent, Collection<? extends OpInfo> infos)
public OpMatchingService matcher()
matcher in interface OpEnvironmentpublic OpInfo info(Class<? extends Op> type)
OpEnvironmentOp class.info in interface OpEnvironmentpublic Collection<OpInfo> infos()
OpEnvironmentinfos in interface OpEnvironmentOpEnvironment.parent()public OpEnvironment parent()
OpEnvironmentparent in interface OpEnvironmentpublic <NS extends Namespace> NS namespace(Class<NS> nsClass)
OpEnvironmentnamespace in interface OpEnvironmentpublic void setMaxThreads(int maxThreads)
OpEnvironmentsetMaxThreads in interface OpEnvironmentpublic int getMaxThreads()
OpEnvironmentgetMaxThreads in interface OpEnvironmentCopyright © 2014–2022 ImageJ. All rights reserved.