Gamma

namespace yagit

Enums

enum class GammaMethod

Enum with methods of calculating gamma index.

Values:

enumerator Classic

Classic method. Based on https://doi.org/10.1118/1.598248.

enumerator Wendling

Wendling method. Based on https://doi.org/10.1118/1.2721657.

Functions

GammaResult gammaIndex2D(const ImageData &refImg2D, const ImageData &evalImg2D, const GammaParameters &gammaParams, GammaMethod method = GammaMethod::Wendling)

Calculate 2D gamma index using classic or Wendling method.

It takes into account y and x coordinates of images. It doesn’t take into account the z coordinates (different z-offsets of refImg and evalImg have no impact on the result).

Parameters:
  • refImg2D – 2D reference image

  • evalImg2D – 2D evaluated image

  • gammaParams – Parameters of gamma index

  • method – Method that will be used to calculate gamma index

Returns:

2D image containing gamma index values

GammaResult gammaIndex2_5D(const ImageData &refImg3D, const ImageData &evalImg3D, const GammaParameters &gammaParams, GammaMethod method = GammaMethod::Wendling)

Calculate 2.5D gamma index using classic or Wendling method.

It calculates gamma index slice by slice going along axial plane. On each slice, it takes into account y and x coordinates of images. It also takes into account z coordinate in a way that depends on a method.

Parameters:
  • refImg3D – 3D reference image

  • evalImg3D – 3D evaluated image

  • gammaParams – Parameters of gamma index

  • method – Method that will be used to calculate gamma index

Returns:

3D image containing gamma index values

GammaResult gammaIndex3D(const ImageData &refImg3D, const ImageData &evalImg3D, const GammaParameters &gammaParams, GammaMethod method = GammaMethod::Wendling)

Calculate 3D gamma index using classic or Wendling method.

It takes into account z, y, and x coordinates of images.

Parameters:
  • refImg3D – 3D reference image

  • evalImg3D – 3D evaluated image

  • gammaParams – Parameters of gamma index

  • method – Method that will be used to calculate gamma index

Returns:

3D image containing gamma index values

GammaResult gammaIndex2DClassic(const ImageData &refImg2D, const ImageData &evalImg2D, const GammaParameters &gammaParams)

Calculate 2D gamma index using classic method.

It takes into account y and x coordinates of images. It doesn’t take into account the z coordinates (different z-offsets of refImg and evalImg have no impact on the result).

Based on https://doi.org/10.1118/1.598248

Parameters:
  • refImg2D – 2D reference image

  • evalImg2D – 2D evaluated image

  • gammaParams – Parameters of gamma index

Returns:

2D image containing gamma index values

GammaResult gammaIndex2_5DClassic(const ImageData &refImg3D, const ImageData &evalImg3D, const GammaParameters &gammaParams)

Calculate 2.5D gamma index using classic method.

It calculates gamma index slice by slice going along axial plane. On each slice, it takes into account y and x coordinates of images. Also, it takes into account z coordinates to calculate distance between two corresponding frames of refImg3D and evalImg3D.

Based on https://doi.org/10.1118/1.598248

Parameters:
  • refImg3D – 3D reference image

  • evalImg3D – 3D evaluated image

  • gammaParams – Parameters of gamma index

Returns:

3D image containing gamma index values

GammaResult gammaIndex3DClassic(const ImageData &refImg3D, const ImageData &evalImg3D, const GammaParameters &gammaParams)

Calculate 3D gamma index using classic method.

It takes into account z, y, and x coordinates of images.

Based on https://doi.org/10.1118/1.598248

Parameters:
  • refImg3D – 3D reference image

  • evalImg3D – 3D evaluated image

  • gammaParams – Parameters of gamma index

Returns:

3D image containing gamma index values

GammaResult gammaIndex2DWendling(const ImageData &refImg2D, const ImageData &evalImg2D, const GammaParameters &gammaParams)

Calculate 2D gamma index using Wendling method.

It takes into account y and x coordinates of images. It doesn’t take into account the z coordinates (different z-offsets of refImg and evalImg have no impact on the result).

It is faster than classic method, so using this function is recommended. Based on https://doi.org/10.1118/1.2721657

Parameters:
  • refImg2D – 2D reference image

  • evalImg2D – 2D evaluated image

  • gammaParams – Parameters of gamma index

Returns:

2D image containing gamma index values

GammaResult gammaIndex2_5DWendling(const ImageData &refImg3D, const ImageData &evalImg3D, const GammaParameters &gammaParams)

Calculate 2.5D gamma index using Wendling method.

It calculates gamma index slice by slice going along axial plane. On each slice, it takes into account y and x coordinates of images. evalImg3D is interpolated along the z axis before gamma calculations to have the same grid only along that axis as refImg.

It is faster than classic method, so using this function is recommended. Based on https://doi.org/10.1118/1.2721657

Parameters:
  • refImg3D – 3D reference image

  • evalImg3D – 3D evaluated image

  • gammaParams – Parameters of gamma index

Returns:

3D image containing gamma index values

GammaResult gammaIndex3DWendling(const ImageData &refImg3D, const ImageData &evalImg3D, const GammaParameters &gammaParams)

Calculate 3D gamma index using Wendling method.

It takes into account z, y, and x coordinates of images.

It is faster than classic method, so using this function is recommended. Based on https://doi.org/10.1118/1.2721657

Parameters:
  • refImg3D – 3D reference image

  • evalImg3D – 3D evaluated image

  • gammaParams – Parameters of gamma index

Returns:

3D image containing gamma index values