radon_transform_demo.py 450 B

12345678910111213
  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. import numpy as np
  5. import cv2 as cv
  6. if __name__ == "__main__":
  7. src = cv.imread("peilin_plane.png", cv.IMREAD_GRAYSCALE)
  8. radon = cv.ximgproc.RadonTransform(src)
  9. cv.imshow("src image", src)
  10. cv.imshow("Radon transform", radon)
  11. cv.waitKey()