Function check_maximum_neighbourhood

Function Documentation

bool check_maximum_neighbourhood(const cv::Mat &img, int dsize, float value, int row, int col, bool same_img)

This function checks if a given pixel is a maximum in a local neighbourhood.

  • img – Input image where we will perform the maximum search

  • dsize – Half size of the neighbourhood

  • value – Response value at (x,y) position

  • row – Image row coordinate

  • col – Image column coordinate

  • same_img – Flag to indicate if the image value at (x,y) is in the input image


1->is maximum, 0->otherwise