John W. Campbell

Class, constructors and methods:

Class DetailsAccessible Fields

Constructor

Set Distortion Parameters

Convert Ideal to Real

Convert Real to Ideal

- Package:
- Jdl.JdlPX;
- Class name:
- JdlDistortionCorrections
- Class definition:
- public class JdlDistortionCorrections
- Extends:
- Object
- Implements:
- none
- Actions:
- none

Constructors:

Constructor 1*Constructor Definition:*- public JdlDistortionCorrections()
*Parameters List:*- none

Methods:

Set standard corrections - setStandardCorrectionFactorsSet radial scan corrections - setRadialCorrectionFactors

*Method Definition:*- public void setStandardCorrectionFactors (double ctod, double x_c, double y_c, double w_c, double y_scale, double twist, double tilt)
*Parameters List:*- ctod
- Crystal to detector distance in mm.
- x_c
- Centre 'x' correction in mm.
- y_c
- Centre 'y' correction in mm.
- w_c
- w_c.
- y_scale
- Correction factor to 'y' pixel size. Corrected value = (y pixel size)/y_scale
- twist
- The distortion twist correction.
- tilt
- The distortion tilt correction.

*Method Definition:*- public void setRadialCorrectionFactors (double ctod, double x_c, double y_c, double w_c, double y_scale, double twist, double tilt, double xcmid, double ycmid, double roff, double toff)
*Parameters List:*- ctod
- Crystal to detector distance in mm.
- x_c
- Centre 'x' correction in mm.
- y_c
- Centre 'y' correction in mm.
- w_c
- w_c.
- y_scale
- Correction factor to 'y' pixel size. Corrected value = (y pixel size)/y_scale
- twist
- The distortion twist correction.
- tilt
- The distortion tilt correction.
- xcmid
- Offset of image mid point from pattern centre in mm along x.
- ycmid
- Offset of image mid point from pattern centre in mm along y.
- roff
- The distortion radial offset correction.
- toff
- The distortion tangential offset correction.

Methods:

Ideal to real - idealToRealIdeal to real - standardIdealToReal

Ideal to real - radialIdealToReal

*Method Definition:*- public JdlXY idealToReal(double xideal, double yideal)
*Parameters List:*- xideal
- The ideal detector 'x' coordinate in mm.
- yideal
- The ideal detector 'y' coordinate in mm.

*Method Return:*- the transformed coordinates xd, yd in JdlXY.x, JdlXY.y.

*Method Definition:*- public static JdlXY standardIdealToReal (double xideal, double yideal, double ctod, double x_c, double y_c, double coswc, double sinwc, double y_scale, double twist, double tilt)
*Parameters List:*- xideal
- The ideal detector 'x' coordinate in mm.
- yideal
- The ideal detector 'y' coordinate in mm.
- ctod
- Crystal to detector distance in mm.
- x_c
- Centre 'x' correction in mm.
- y_c
- Centre 'y' correction in mm.
- coswc
- cos(w_c).
- sinwc
- sin(w_c).
- y_scale
- Correction factor to 'y' pixel size. Corrected value = (y pixel size)/y_scale
- twist
- The distortion twist correction.
- tilt
- The distortion tilt correction.

*Method Return:*- the transformed coordinates xd, yd in JdlXY.x, JdlXY.y.

*Method Definition:*- public static JdlXY radialIdealToReal (double xideal, double yideal, double ctod, double x_c, double y_c, double coswc, double sinwc, double y_scale, double twist, double tilt, double xcmid, double ycmid, double roff, double toff)
*Parameters List:*- xideal
- The ideal detector 'x' coordinate in mm.
- yideal
- The ideal detector 'y' coordinate in mm.
- ctod
- Crystal to detector distance in mm.
- x_c
- Centre 'x' correction in mm.
- y_c
- Centre 'y' correction in mm.
- coswc
- cos(w_c).
- sinwc
- sin(w_c).
- y_scale
- Correction factor to 'y' pixel size. Corrected value = (y pixel size)/y_scale
- twist
- The distortion twist correction.
- tilt
- The distortion tilt correction.
- xcmid
- Offset of image mid point from pattern centre in mm along x.
- ycmid
- Offset of image mid point from pattern centre in mm along y.
- roff
- The distortion radial offset correction.
- toff
- The distortion tangential offset correction.

*Method Return:*- the transformed coordinates xd, yd in JdlXY.x, JdlXY.y.

Methods:

Real to ideal - realToIdealReal to ideal - standardRealToIdeal

Real to ideal - radialRealToIdeal

*Method Definition:*- public JdlXY realToIdeal(double xfd, double yfd)
*Parameters List:*- xfd
- The measured detector 'x' coordinate in mm.
- yfd
- The measured detector 'y' coordinate in mm.

*Method Return:*- the transformed coordinates xf, yf in JdlXY.x, JdlXY.y.

*Method Definition:*- public static JdlXY standardRealToIdeal (double xfd, double yfd, double ctod, double x_c, double y_c, double coswc, double sinwc, double y_scale, double twist, double tilt)
*Parameters List:*- xfd
- The measured detector 'x' coordinate in mm.
- yfd
- The measured detector 'y' coordinate in mm.
- ctod
- Crystal to detector distance in mm.
- x_c
- Centre 'x' correction in mm.
- y_c
- Centre 'y' correction in mm.
- coswc
- cos(w_c).
- sinwc
- sin(w_c).
- y_scale
- Correction factor to 'y' pixel size. Corrected value = (y pixel size)/y_scale
- twist
- The distortion twist correction.
- tilt
- The distortion tilt correction.

*Method Return:*- the transformed coordinates xf, yf in JdlXY.x, JdlXY.y.

*Method Definition:*- public static JdlXY radialRealToIdeal (double xfd, double yfd, double ctod, double x_c, double y_c, double coswc, double sinwc, double y_scale, double twist, double tilt, double xcmid, double ycmid, double roff, double toff)
*Parameters List:*- xfd
- The measured detector 'x' coordinate in mm.
- yfd
- The measured detector 'y' coordinate in mm.
- ctod
- Crystal to detector distance in mm.
- x_c
- Centre 'x' correction in mm.
- y_c
- Centre 'y' correction in mm.
- coswc
- cos(w_c).
- sinwc
- sin(w_c).
- y_scale
- Correction factor to 'y' pixel size. Corrected value = (y pixel size)/y_scale
- twist
- The distortion twist correction.
- tilt
- The distortion tilt correction.
- xcmid
- Offset of image mid point from pattern centre in mm along x.
- ycmid
- Offset of image mid point from pattern centre in mm along y.
- roff
- The distortion radial offset correction.
- toff
- The distortion tangential offset correction.

*Method Return:*- the transformed coordinates xf, yf in JdlXY.x, JdlXY.y.

⇑ Up 2 ⇑ Up 1 ⇑ Top of this