Skip to content

Python Binding PolynomialCorrection

Anders Kaestner edited this page Jul 17, 2019 · 2 revisions

Return to Python bindings manual

API

Methods

Enums

Example

import numpy as np 
import imagalg

pc=imagalg.PolynomialCorrection()

coef=[1,2,3,4] # 1+2x+3x^2+4x^3

pc.setup(coef)

# Lists
arr=[1,2,3,4,5,6]
res=pc.process(arr)
print(res)

# Numpy arrays are processed inplace
mat=np.array[[1,2,3],[4,5,6]]

print("Before ",mat)
pc.process(mat)
print("After ", mat)
Clone this wiki locally