public class Harmonizer extends AbstractContextual
ImageDisplay
and
an ImagePlus
.Constructor and Description |
---|
Harmonizer(Context context,
ImageTranslator trans) |
Modifier and Type | Method and Description |
---|---|
void |
registerType(ij.ImagePlus imp)
Remembers the type of an
ImagePlus . |
void |
updateDisplay(ImageDisplay display,
ij.ImagePlus imp)
Changes the data within a
ImageDisplay to match data in an
ImagePlus . |
void |
updateLegacyImage(ImageDisplay display,
ij.ImagePlus imp)
Changes the data within an
ImagePlus to match data in a
ImageDisplay . |
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setContext
public Harmonizer(Context context, ImageTranslator trans)
public void updateLegacyImage(ImageDisplay display, ij.ImagePlus imp)
ImagePlus
to match data in a
ImageDisplay
. Assumes Dataset has planar primitive access in a
legacy ImageJ compatible format.public void updateDisplay(ImageDisplay display, ij.ImagePlus imp)
ImageDisplay
to match data in an
ImagePlus
. Assumes the given ImagePlus is not a degenerate set of
data (an empty stack).public void registerType(ij.ImagePlus imp)
ImagePlus
. This type can be checked after
a call to a plugin to see if the ImagePlus underwent a type change.Copyright © 2014–2022 ImageJ. All rights reserved.