public class BeamProfileCorrectionCommand
extends org.scijava.command.DynamicCommand
implements org.scijava.command.Command
The command requires two images: a 2D background image with the beam profile and the video that should be corrected. For each pixel at position x, y the following is calculated:
(Image(x,y) - electronic_offset) / ((Background(x,y) - electronic_offset) / (maximum_pixel_background - electronic_offset)).
When finished the active image or image provided will be corrected.
Constructor and Description |
---|
BeamProfileCorrectionCommand() |
Modifier and Type | Method and Description |
---|---|
void |
correctFrame(int channel,
int t) |
ij.ImagePlus |
getBackgroundImage() |
int |
getChannel() |
net.imagej.Dataset |
getDataset() |
double |
getElectronicOffset() |
ij.ImagePlus |
getImage() |
java.lang.String |
getRegion() |
int |
getThreads() |
void |
initialize() |
void |
run() |
void |
setBackgroundImage(ij.ImagePlus backgroundImage) |
void |
setChannel(int channel) |
void |
setDataset(net.imagej.Dataset dataset) |
void |
setElectronicOffset(double electronicOffset) |
void |
setImage(ij.ImagePlus image) |
void |
setRegion(java.lang.String region) |
void |
setThreads(int nThreads) |
cancel, context, getCancelReason, getContext, getInfo, getInput, getOutput, isCanceled, saveInputs, setContext, setInput, setOutput, uncancel
cancel, getDelegateObject, getInputs, getOutputs, isInputResolved, isOutputResolved, preview, resolveInput, resolveOutput, setInputs, setOutputs, unresolveInput, unresolveOutput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void initialize()
initialize
in interface org.scijava.module.Module
initialize
in class org.scijava.module.AbstractModule
public void run()
run
in interface java.lang.Runnable
run
in interface org.scijava.module.MutableModule
public void correctFrame(int channel, int t)
public net.imagej.Dataset getDataset()
public void setDataset(net.imagej.Dataset dataset)
public void setRegion(java.lang.String region)
public java.lang.String getRegion()
public void setChannel(int channel)
public int getChannel()
public void setImage(ij.ImagePlus image)
public ij.ImagePlus getImage()
public void setBackgroundImage(ij.ImagePlus backgroundImage)
public ij.ImagePlus getBackgroundImage()
public void setElectronicOffset(double electronicOffset)
public double getElectronicOffset()
public void setThreads(int nThreads)
public int getThreads()