Color splines -> ColorCurve object

asked 2014-05-25 11:20:41 -0500

empedokles gravatar image

This from the basics should receive it's own tutorial:

ColorCurve is a color spline class for performing color correction. It can take as parameters a SciPy Univariate spline, or an array with at least 4 point pairs. Either of these must map in a 255x255 space. The curve can then be used in the applyRGBCurve, applyHSVCurve, and applyInstensityCurve functions:

img = Image("lenna") clr = ColorCurve([[0,0], [100, 120], [180, 230], [255, 255]]) img.applyIntensityCurve(clr)

edit retag flag offensive close merge delete