Demonstration of LAB color space

LAB color space has three channels: Lightness, Alpha, Beta. Alpha and Beta are coordinates to determine the color regardless of luminous. So one thing you can play with LAB is pickup objects in the image with the same color.

Too sad you cannot see this beautiful lady!

Atsuki's image, from left to right are original, with L=avg, with L=100.

An APL algorithm to convert RGB to LAB can be implemented as:

     d←⍉D65÷⍨⍤1⊢RGB2XYZ+.×⍤99 1⊢⍉⍵÷255               

Where RGB2XYZ is the matrix [ 0.49 0.31 0.2 0.17697 0.8124 0.01063 0 0.01 0.99 ] .

Use some imagination, you may already know how to implement magic wand selector with these information.