{-# LANGUAGE ForeignFunctionInterface #-} #include #include module OpenCVRaw.Mat where #strict_import import OpenCVRaw.Types import Foreign.C import Foreign.C.Types import Foreign.Ptr import Foreign.ForeignPtr import Data.Vector.Storable #ccall cv_create_Mat , IO (Ptr ) #ccall cv_Mat_getRow , Ptr -> CInt -> IO (Ptr ) #ccall cv_Mat_getCol , Ptr -> CInt -> IO (Ptr ) #ccall cv_Mat_getRowRange , Ptr -> CInt -> CInt -> IO (Ptr ) #ccall cv_Mat_getColRange , Ptr -> CInt -> CInt -> IO (Ptr ) #ccall cv_Mat_elemSize , Ptr -> IO CSize #ccall cv_Mat_elemSize1 , Ptr -> IO CSize #ccall cv_Mat_type , Ptr -> IO CInt #ccall cv_Mat_depth , Ptr -> IO CInt #ccall cv_Mat_total , Ptr -> IO CSize #ccall cv_Mat_isContinuous , Ptr -> IO CInt #ccall cv_Mat_channels , Ptr -> IO CInt #ccall cv_Mat_rows , Ptr -> IO CInt #ccall cv_Mat_cols , Ptr -> IO CInt #ccall cv_Mat_empty , Ptr -> IO CInt #ccall cv_Mat_size , Ptr -> IO (Ptr ) #ccall cv_Mat_step1 , Ptr -> IO CSize #ccall cv_Mat_diag , Ptr -> IO (Ptr ) #ccall cv_Mat_diag_d , Ptr -> CInt -> IO (Ptr ) #ccall cv_create_diagMat , Ptr -> IO (Ptr ) #ccall cv_Mat_assign , Ptr -> Ptr -> IO (Ptr ) #ccall cv_Mat_assignVal , Ptr -> Ptr -> IO (Ptr ) #ccall cv_Mat_clone , Ptr -> IO (Ptr ) #ccall cv_Mat_copyTo , Ptr -> Ptr -> IO () #ccall cv_Mat_copyTo_masked , Ptr -> Ptr -> Ptr -> IO () #ccall cv_Mat_assignTo , Ptr -> Ptr -> IO () #ccall cv_Mat_assignTo_t , Ptr -> Ptr -> CInt -> IO () #ccall cv_Mat_setTo , Ptr -> Ptr -> IO (Ptr ) #ccall cv_Mat_setTo_masked , Ptr -> Ptr -> Ptr -> IO (Ptr ) #ccall cv_Mat_reshape , Ptr -> CInt -> IO (Ptr ) #ccall cv_Mat_reshape_rows , Ptr -> CInt -> CInt -> IO (Ptr ) #ccall cv_Mat_ptr , Ptr -> IO (Ptr CUChar)