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, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
coloc, 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, zernike
context, getContext, setContext
public CustomOpEnvironment(Context context)
public CustomOpEnvironment(OpEnvironment parent)
public CustomOpEnvironment(OpEnvironment parent, Collection<? extends OpInfo> infos)
public OpMatchingService matcher()
matcher
in interface OpEnvironment
public OpInfo info(Class<? extends Op> type)
OpEnvironment
Op
class.info
in interface OpEnvironment
public Collection<OpInfo> infos()
OpEnvironment
infos
in interface OpEnvironment
OpEnvironment.parent()
public OpEnvironment parent()
OpEnvironment
parent
in interface OpEnvironment
public <NS extends Namespace> NS namespace(Class<NS> nsClass)
OpEnvironment
namespace
in interface OpEnvironment
public void setMaxThreads(int maxThreads)
OpEnvironment
setMaxThreads
in interface OpEnvironment
public int getMaxThreads()
OpEnvironment
getMaxThreads
in interface OpEnvironment
Copyright © 2014–2022 ImageJ. All rights reserved.