open-code the fastx adjuster, as opencv's one is slow

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>