public class DoubleToImagePlusConverter extends AbstractLegacyConverter<Double,ij.ImagePlus>
double form to its corresponding
ImagePlus object.
ImageJ 1.x macros do not support object references. To reference an image,
you must either do so by title (a string) or by ID (a double). If a macro
declares an output of type ImagePlus, the macro must assign that
output with either a title or an ID. This converter exists so that ImageJ 1.x
macros that assign a double ID value to an ImagePlus output will be
properly converted when the actual output value is needed.
Note that unlike most other classes in the ImageJ Legacy project, this one
needs typed references to classes in the ij package,
particularly ImagePlus, so that the conversion logic works as
intended. It seems to work without side effects in the standard case...
legacyService| Constructor and Description |
|---|
DoubleToImagePlusConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Object src,
Class<?> dest) |
<T> T |
convert(Object src,
Class<T> dest) |
Class<Double> |
getInputType() |
Class<ij.ImagePlus> |
getOutputType() |
canConvert, legacyEnabledcanConvert, canConvert, canConvert, convert, convert, getType, populateInputCandidates, supportsgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic boolean canConvert(Object src, Class<?> dest)
canConvert in interface Converter<Double,ij.ImagePlus>canConvert in class AbstractConverter<Double,ij.ImagePlus>public Class<ij.ImagePlus> getOutputType()
Copyright © 2014–2022 ImageJ. All rights reserved.