public class SpectralComposite extends ContextCommand
Constructor and Description |
---|
SpectralComposite() |
Modifier and Type | Method and Description |
---|---|
static int |
factorAdjust(double color,
double factor,
int intensityMax,
double gamma) |
int |
getEndingWavelength() |
int |
getStartingWavelength() |
DatasetView |
getView() |
void |
run() |
void |
setEndingWavelength(int waveLength) |
void |
setStartingWavelength(int waveLength) |
void |
setView(DatasetView view) |
static ColorRGB |
wavelengthToColor(int wavelength)
Converts a wavelength of light to an RGB color.
|
cancel, getCancelReason, isCanceled
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setContext
public void run()
public void setView(DatasetView view)
public DatasetView getView()
public void setStartingWavelength(int waveLength)
public int getStartingWavelength()
public void setEndingWavelength(int waveLength)
public int getEndingWavelength()
public static ColorRGB wavelengthToColor(int wavelength)
Thanks to Miguel Moreno for the code, based on Dan Bruton's algorithm.
public static int factorAdjust(double color, double factor, int intensityMax, double gamma)
Copyright © 2014–2022 ImageJ. All rights reserved.