public final class Common extends Object
Constructor and Description |
---|
Common() |
Modifier and Type | Method and Description |
---|---|
static void |
cancelMacroSafe(ContextCommand command,
String reason)
Cancels a command so that it won't show a dialog if a macro is running
|
static ij.process.LUT |
makeFire()
Generates the 'fire' look-up table (LUT) and returns it as an IJ1 LUT
object
|
static <C extends ComplexType<C>> |
toBitTypeImgPlus(OpEnvironment ops,
ImgPlus<C> imgPlus)
|
static boolean |
warnAnisotropy(ij.ImagePlus image,
UIService uiService)
Shows a warning dialog about image anisotropy, and asks if the user wants
to continue.
|
public static ij.process.LUT makeFire()
public static <C extends ComplexType<C>> ImgPlus<BitType> toBitTypeImgPlus(OpEnvironment ops, ImgPlus<C> imgPlus)
C
- type of the elements in the input image.ops
- an OpService
to find the necessary ops for conversion.imgPlus
- an image.public static boolean warnAnisotropy(ij.ImagePlus image, UIService uiService)
image
- the current image open in ImageJ.uiService
- used to display the warning dialog.public static void cancelMacroSafe(ContextCommand command, String reason)
When a macro is running, an error message is logged instead
command
- Command that needs to be cancelledreason
- A message that describes why the command is being cancelledContextCommand.cancel(String)
Copyright © 2018–2022 BoneJ. All rights reserved.