|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.filtering.ImageFilteringTool
edu.stanford.rsl.konrad.filtering.IndividualImageFilteringTool
edu.stanford.rsl.konrad.filtering.CosineWeightingTool
public class CosineWeightingTool
Filtering tool to apply cosine weights. Weights can either be computed from six geometry parameters or loaded from an ImagePlus. Raw cosine weights are sometimes provided as calibration data from some manufacturers. Computation from the geometry parameters follows Kak & Slaney, Principles of Computerized Tomographic Imaging, 1988;
Constructor Summary | |
---|---|
CosineWeightingTool()
|
Method Summary | |
---|---|
ij.process.ImageProcessor |
applyToolToProcessor(ij.process.ImageProcessor imageProcessor)
Is called in every thread to apply the tool to an individual ImageProcessor |
IndividualImageFilteringTool |
clone()
All ImageFilteringTools need to be Cloneable in order to enable multiple processor usage. |
void |
configure()
Configures the object before execution |
void |
convertImagePlusToWeights(ij.ImagePlus image)
uses the currentProcessor of the image to read in the cosine weights. |
ij.ImagePlus |
convertWeightsToImagePlus()
creates an ImagePlus to visualize the weights. |
void |
generateCosineWeights()
Computes the cosine weights as described in Kak & Slaney, Computerized Tomographic Imaging, 1988 |
java.lang.String |
getBibtexCitation()
Returns the citation in bibTex format |
double[][] |
getCosineWeigths()
|
int |
getDetectorHeight()
|
int |
getDetectorWidth()
|
java.lang.String |
getMedlineCitation()
Returns the citation in Medline format |
double |
getPixelDimensionX()
|
double |
getPixelDimensionY()
|
double |
getSourceToCenterOfRotationDistance()
|
double |
getSourceToDetectorDistance()
|
java.lang.String |
getToolName()
returns the name of the actual tool which was used. |
boolean |
isDeviceDependent()
Cosine filtering depends on the projection geometry and is hence not device depdendent. |
void |
prepareForSerialization()
Sets all data objects in the serialized object to null which do not implement the Serializable interface. |
void |
setConfiguration(Configuration config)
|
void |
setCosineWeigths(double[][] cosineWeigths)
|
void |
setDetectorHeight(int detectorHeight)
|
void |
setDetectorWidth(int detectorWidth)
|
void |
setPixelDimensionX(double pixelDimensionX)
|
void |
setPixelDimensionY(double pixelDimensionY)
|
void |
setSourceToCenterOfRotationDistance(double sourceToCenterOfRotationDistance)
|
void |
setSourceToDetectorDistance(double sourceToDetectorDistance)
|
Methods inherited from class edu.stanford.rsl.konrad.filtering.IndividualImageFilteringTool |
---|
applyToolToProcessor, getFilteredImageProcessor, getImageIndex, getProcessName, run, setImageIndex, setImageProcessor, setLatch |
Methods inherited from class edu.stanford.rsl.konrad.filtering.ImageFilteringTool |
---|
getFilterTools, isConfigured, setConfigured, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CosineWeightingTool()
Method Detail |
---|
public void generateCosineWeights() throws java.lang.Exception
java.lang.Exception
- if not all parameters are set.public double[][] getCosineWeigths()
public void setCosineWeigths(double[][] cosineWeigths)
public double getPixelDimensionX()
public void setPixelDimensionX(double pixelDimensionX)
public double getPixelDimensionY()
public void setPixelDimensionY(double pixelDimensionY)
public double getSourceToDetectorDistance()
public void setSourceToDetectorDistance(double sourceToDetectorDistance)
public int getDetectorWidth()
public void setDetectorWidth(int detectorWidth)
public int getDetectorHeight()
public void setDetectorHeight(int detectorHeight)
public double getSourceToCenterOfRotationDistance()
public void setSourceToCenterOfRotationDistance(double sourceToCenterOfRotationDistance)
public void setConfiguration(Configuration config)
public IndividualImageFilteringTool clone()
IndividualImageFilteringTool
clone
in class IndividualImageFilteringTool
public java.lang.String getToolName()
ImageFilteringTool
getToolName
in class ImageFilteringTool
public ij.process.ImageProcessor applyToolToProcessor(ij.process.ImageProcessor imageProcessor) throws java.lang.Exception
IndividualImageFilteringTool
applyToolToProcessor
in class IndividualImageFilteringTool
imageProcessor
- the ImageProcessor
java.lang.Exception
public ij.ImagePlus convertWeightsToImagePlus()
public void prepareForSerialization()
SafeSerializable
prepareForSerialization
in interface SafeSerializable
prepareForSerialization
in class IndividualImageFilteringTool
public void convertImagePlusToWeights(ij.ImagePlus image)
image
- the image from which the weights are read.public void configure()
GUIConfigurable
public java.lang.String getBibtexCitation()
Citeable
public java.lang.String getMedlineCitation()
Citeable
public boolean isDeviceDependent()
isDeviceDependent
in class ImageFilteringTool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |