Adding function to transform frame stack data.

@twobraids r?