Skip to content

Image transformation using Zernike polynomials.

artemk1337/zernike_transform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zernike_transform

How to start:

  • Initialize class
Z = Zernike() 
  • Load image
img = Z.load_img("star.jpg")
  • Crop image to square, x and y - center of img
img = Z.crop_image(img=img,
                   x=img.shape[1] // 2,
                   y=img.shape[0] // 2,
                   R=img.shape[0] // 2,
                   show=True)
  • create zernike polynomials and set depth
Z.zernike_polynomials(img, max_depth=40, save=True)
  • reconstruct image from polynomials
Z.zernike_reconstruct_image(coefs=Z.coefs, R=100, depth=40, save=True)

Source image:
Source image
Output image:
Source image

About

Image transformation using Zernike polynomials.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages