Multitask linear discriminant analysis for view invariant action recognition