LC-Magick #10

hh hh at hyperhh.de
Sun Feb 11 07:08:55 EST 2018


Added today LC-Magick #10: Color Tonality Curve

Variant 1: Pure LC Script, use it best with LC 6 (slow with LC 8/9).
Variant 2: Uses JS in a (hidden) browser widget for use with LC 8/9.

Variant 1 runs on Mac/ Win 7+10/ linux 32bit with LC 6/7/8/9 and Raspi 6/7.
Variant 2 runs on Mac/ Win 7+10/ Ubuntu 64bit with (latest) LC 8/9.

A tone curve has to map each of the color values 0-255 of your image to a
value in range 0-255. Some well known image processing apps use internally
for setting saturation, brightness or gamma also such curves.

You can set the tone curve
= by an editable formula or 
= by 2 up to 9 handles (control points) that determine either,
... a polygon chain (linear pieces between the control points),
... a bezier curve of order 1=linear, 2= square ... up to order 8
    (usually most control points are not on the curve),
... a natural spline curve (control points are on the curve),
... a clamped spline curve (control points are on the curve).

The LC-Magick Collection

LC-Magick #10 - Color Tonality Curve (HermannH)
http://forums.livecode.com/viewtopic.php?p=163787#p163787
LC-Magick #9 - Selective Gray (HermannH)
http://forums.livecode.com/viewtopic.php?p=154277#p154277
LC-Magick #8 - MoonEffect (Fisheye) (HermannH and BerndN)
http://forums.livecode.com/viewtopic.php?p=153159#p153159
LC-Magick #7 - Cuboid (HermannH)
http://forums.livecode.com/viewtopic.php?p=153076#p153076
LC-Magick #6 - Bilinear Perspective Distortion (HermannH and BerndN)
http://forums.livecode.com/viewtopic.php?p=150757#p150757
LC-Magick #5 - Circular (Polar) Image Distortion (HermannH and BerndN)
http://forums.livecode.com/viewtopic.php?p=149999#p149999
LC-Magick #4 - Linear Perspective Image Distortion (HermannH)
http://forums.livecode.com/viewtopic.php?p=148647#p148647
LC-Magick #3 - Image Multiplexing (HermannH)
http://forums.livecode.com/viewtopic.php?p=141272#p141272
LC-Magick #2 - Pointillize (HermannH)
http://forums.livecode.com/viewtopic.php?p=141051#p141051
LC-Magick #1 - Blur and Pixelate (ScottR)
http://tactilemedia.com/blog/2016/03/26/update-blur-effect-plus-pixelize-bonus/

A lot of the ideas above is based on ideas presented in imageMagick's
documentation, see http://www.imagemagick.org/Usage/





More information about the use-livecode mailing list