Transform selection implemented in sample GUI.

Gistogram output does not work propertly due color conversion problems.