peilin.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. #ifndef __OPENCV_PEILIN_HPP__
  5. #define __OPENCV_PEILIN_HPP__
  6. #include <opencv2/core.hpp>
  7. namespace cv
  8. {
  9. //! @addtogroup ximgproc
  10. //! @{
  11. /**
  12. * @brief Calculates an affine transformation that normalize given image using Pei&Lin Normalization.
  13. *
  14. * Assume given image \f$I=T(\bar{I})\f$ where \f$\bar{I}\f$ is a normalized image and \f$T\f$ is an affine transformation distorting this image by translation, rotation, scaling and skew.
  15. * The function returns an affine transformation matrix corresponding to the transformation \f$T^{-1}\f$ described in [PeiLin95].
  16. * For more details about this implementation, please see
  17. * [PeiLin95] Soo-Chang Pei and Chao-Nan Lin. Image normalization for pattern recognition. Image and Vision Computing, Vol. 13, N.10, pp. 711-723, 1995.
  18. *
  19. * @param I Given transformed image.
  20. * @return Transformation matrix corresponding to inversed image transformation
  21. */
  22. CV_EXPORTS Matx23d PeiLinNormalization ( InputArray I );
  23. /** @overload */
  24. CV_EXPORTS_W void PeiLinNormalization ( InputArray I, OutputArray T );
  25. }
  26. #endif