public class StringToImagePlusConverter extends org.scijava.convert.AbstractConverter<String,ij.ImagePlus>
ImagePlus object. Both image
titles and ID values are supported (with IDs being preferred).
This converter exists to make ImageJ 1.x macro calls to SciJava modules work
better with ImagePlus inputs—e.g.:
run("Print Title", "imp=blobs.gif name=Jan");
The converter enables string fragments like imp=blobs.gif or
imp=-2 to properly resolve to the associated ImagePlus.
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...
| Constructor and Description |
|---|
StringToImagePlusConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Object src,
Class<?> dest) |
boolean |
canConvert(Object src,
Type dest) |
<T> T |
convert(Object src,
Class<T> dest) |
Class<String> |
getInputType() |
Class<ij.ImagePlus> |
getOutputType() |
populateInputCandidates, supportsgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanConvert, canConvert, canConvert, convert, convert, getTypegetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionCopyright © 2009–2025 ImageJ. All rights reserved.