public abstract class IndividualImageFilteringTool extends ImageFilteringTool implements NamedParallelizableRunnable
Constructor and Description |
---|
IndividualImageFilteringTool() |
Modifier and Type | Method and Description |
---|---|
abstract Grid2D |
applyToolToImage(Grid2D imageProcessor)
Is called in every thread to apply the tool to an individual ImageProcessor
|
abstract IndividualImageFilteringTool |
clone()
All ImageFilteringTools need to be Cloneable in order to enable multiple processor usage.
|
Grid2D |
getFilteredImage()
returns the filtered ImageProcessor if the filtering was successful.
|
int |
getImageIndex()
Returns the index of the current image in the ImageStack.
|
java.lang.String |
getProcessName() |
void |
prepareForSerialization()
Sets all data objects in the serialized object to null which do not implement the Serializable interface.
|
void |
run()
This method performs the correction on one frame, i.e., one projection image.
|
void |
setImageIndex(int imageIndex)
Sets the number of the current image in the stack.
|
void |
setImageProcessor(Grid2D imageProcessor)
Sets the actual ImageProcessor to be filtered.
|
void |
setLatch(java.util.concurrent.CountDownLatch latch) |
getFilterTools, getToolName, isConfigured, isDeviceDependent, setConfigured, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
configure
getBibtexCitation, getMedlineCitation
public abstract IndividualImageFilteringTool clone()
clone
in class ImageFilteringTool
public int getImageIndex()
setImageIndex(int)
public abstract Grid2D applyToolToImage(Grid2D imageProcessor) throws java.lang.Exception
imageProcessor
- the ImageProcessorjava.lang.Exception
public void setImageIndex(int imageIndex)
imageIndex
- the index of the current image.public void setImageProcessor(Grid2D imageProcessor)
imageProcessor
- the processor to be filtered.public void setLatch(java.util.concurrent.CountDownLatch latch)
setLatch
in interface ParallelizableRunnable
public void run()
run
in interface java.lang.Runnable
public Grid2D getFilteredImage()
public void prepareForSerialization()
SafeSerializable
prepareForSerialization
in interface SafeSerializable
prepareForSerialization
in class ImageFilteringTool
public java.lang.String getProcessName()
getProcessName
in interface NamedParallelizableRunnable