public class LidReconstructor extends Object
reconstructionDicLid()
by isRotated flag.
Privates:
Warning Currently this class supports only 8bit images. It can support also 16bit input but in this case algorithm used for detection of true pixels may not work correctly for certain cases - when maximum intensity will be max-shift
The input image can be prefitlered before processing. This is running mean filter of given mask size applied at angle perpendicular to the shear (this angle is given by caller).
Constructor and Description |
---|
LidReconstructor(ij.ImagePlus srcImage,
double decay,
double angle)
Default constructor that accepts ImagePlus.
|
LidReconstructor(ij.process.ImageProcessor ip,
double decay,
double angle)
Default constructor that accepts ImageProcessor.
|
LidReconstructor(ij.process.ImageProcessor ip,
double decay,
double angle,
String prefilterangle,
int masksize)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ij.process.ImageProcessor |
reconstructionDicLid()
Reconstruct DIC image by LID method.
|
void |
setIp(ij.process.ImageProcessor ip)
Assigns ImageProcessor for reconstruction to current object.
|
void |
setParams(double decay,
double angle)
Sets new reconstruction parameters for current object.
|
public LidReconstructor(ij.ImagePlus srcImage, double decay, double angle) throws DicException
Input srcImage is not modified
srcImage
- Image to processdecay
- algorithm constantangle
- DIC angleDicException
- Throws exception after generateRanges()public LidReconstructor(ij.process.ImageProcessor ip, double decay, double angle) throws DicException
Input ip is not modified
ip
- ImageProcessor to processdecay
- algorithm constantangle
- DIC angleDicException
- Throws exception after generateRanges()public LidReconstructor(ij.process.ImageProcessor ip, double decay, double angle, String prefilterangle, int masksize) throws DicException
ip
- image to processdecay
- algorithm constantangle
- DIC angleprefilterangle
- Supported angle of prefilteringmasksize
- uneven mask size, 0 switches off filteringDicException
- wrong imagepublic void setParams(double decay, double angle) throws DicException
decay
- algorithm constantangle
- DIC angleDicException
- Throws exception after generateRanges()public void setIp(ij.process.ImageProcessor ip)
This method can be used for changing image connected to DICReconstruction object. New image should have the same architecture as image passed in constructor. Typically this method is used for passing next slice from stack.
Input ip is not modified
ip
- New ImageProcessor containing image for reconstruction.public ij.process.ImageProcessor reconstructionDicLid()
The reconstruction algorithm assumes that input image bas-reliefs are oriented horizontally, thus correct angle should be provided.
Warning
Used optimization with detecting of image pixels based on their value may not be accurate when input image will be 16-bit and it will contain saturated pixels
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.