peilin.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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 { namespace ximgproc {
  8. //! @addtogroup ximgproc
  9. //! @{
  10. /**
  11. * @brief Calculates an affine transformation that normalize given image using Pei&Lin Normalization.
  12. *
  13. * 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.
  14. * The function returns an affine transformation matrix corresponding to the transformation \f$T^{-1}\f$ described in [PeiLin95].
  15. * For more details about this implementation, please see
  16. * [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.
  17. *
  18. * @param I Given transformed image.
  19. * @return Transformation matrix corresponding to inversed image transformation
  20. */
  21. CV_EXPORTS Matx23d PeiLinNormalization ( InputArray I );
  22. /** @overload */
  23. CV_EXPORTS_W void PeiLinNormalization ( InputArray I, OutputArray T );
  24. }} // namespace
  25. #endif