 
         typedef char2 read_type;
         typedef short2 write_type;
-    };     
+    };
     template <typename T, typename DT>
     struct ReadWriteTraits<T, DT, 2, 2>
     {


                            SetToFunc_without_mask func = tab[depth];

                            if (func == 0) error("Operation \'ConvertTo\' doesn't supported on your GPU model", __FILE__, __LINE__);

                            func(mat, channels);
                        }

        typedef int2 read_type;
        typedef short2 write_type;
    };

    template <typename T, typename DT>
    __global__ static void kernel_convert_to(uchar* srcmat, size_t src_step, uchar* dstmat, size_t dst_step, size_t width, size_t height, double alpha, double beta)
    {
        typedef typename ReadWriteTraits<T, DT, sizeof(T), sizeof(DT)>::read_type read_type;
