Function pm_g2

Function Documentation

void pm_g2(const cv::Mat &Lx, const cv::Mat &Ly, cv::Mat &dst, const float k)

This function computes the Perona and Malik conductivity coefficient g2 g2 = 1 / (1 + dL^2 / k^2)

Parameters
  • Lx – First order image derivative in X-direction (horizontal)

  • Ly – First order image derivative in Y-direction (vertical)

  • dst – Output image

  • k – Contrast factor parameter