Move some variables into #ifdef
Change uchar2 to short
added extra condition
Merge pull request #2874 from vbystricky:ocl_LUTAMDfix
Merge pull request #2887 from ilya-lavrenov:ipp_morph_fix