jterrace / pyssim

A Python module for computing the Structural Similarity Image Metric (SSIM)
MIT License
340 stars 62 forks source link

use your class in pyhton ? #26

Closed masoudpz closed 6 years ago

masoudpz commented 6 years ago

How can i use your code in python as a function? i want to use your cwssim function in python as a function?

jterrace commented 6 years ago
import ssim
s = ssim.SSIM(base_image)
s.cw_ssim_value(comparison_image)

See constructor docs here: https://github.com/jterrace/pyssim/blob/master/ssim/ssimlib.py#L94