@ -290,7 +290,7 @@ IOStream& operator<< (IOStream& os, const cv::Mat &m) {
case CV_32S : write_mat_data < int32_t > ( os , m ) ; break ;
case CV_32F : write_mat_data < float > ( os , m ) ; break ;
case CV_64F : write_mat_data < double > ( os , m ) ; break ;
default : GAPI_Assert ( false & & " Unsupported Mat depth " ) ;
default : GAPI_Error ( " Unsupported Mat depth " ) ;
}
return os ;
}
@ -306,7 +306,7 @@ IIStream& operator>> (IIStream& is, cv::Mat& m) {
case CV_32S : read_mat_data < int32_t > ( is , m ) ; break ;
case CV_32F : read_mat_data < float > ( is , m ) ; break ;
case CV_64F : read_mat_data < double > ( is , m ) ; break ;
default : GAPI_Assert ( false & & " Unsupported Mat depth " ) ;
default : GAPI_Error ( " Unsupported Mat depth " ) ;
}
return is ;
}
@ -319,10 +319,10 @@ IIStream& operator>> (IIStream& is, cv::gapi::wip::draw::Text &t) {
}
IOStream & operator < < ( IOStream & , const cv : : gapi : : wip : : draw : : FText & ) {
GAPI_Assert ( false & & " Serialization: Unsupported << for FText " ) ;
GAPI_Error ( " Serialization: Unsupported << for FText " ) ;
}
IIStream & operator > > ( IIStream & , cv : : gapi : : wip : : draw : : FText & ) {
GAPI_Assert ( false & & " Serialization: Unsupported >> for FText " ) ;
GAPI_Error ( " Serialization: Unsupported >> for FText " ) ;
}
IOStream & operator < < ( IOStream & os , const cv : : gapi : : wip : : draw : : Circle & c ) {
@ -398,19 +398,19 @@ IIStream& operator>> (IIStream& is, cv::GArrayDesc &) {return is;}
# if !defined(GAPI_STANDALONE)
IOStream & operator < < ( IOStream & os , const cv : : UMat & )
{
GAPI_Assert ( false & & " Serialization: Unsupported << for UMat " ) ;
GAPI_Error ( " Serialization: Unsupported << for UMat " ) ;
return os ;
}
IIStream & operator > > ( IIStream & is , cv : : UMat & )
{
GAPI_Assert ( false & & " Serialization: Unsupported >> for UMat " ) ;
GAPI_Error ( " Serialization: Unsupported >> for UMat " ) ;
return is ;
}
# endif // !defined(GAPI_STANDALONE)
IOStream & operator < < ( IOStream & os , const cv : : gapi : : wip : : IStreamSource : : Ptr & )
{
GAPI_Assert ( false & & " Serialization: Unsupported << for IStreamSource::Ptr " ) ;
GAPI_Error ( " Serialization: Unsupported << for IStreamSource::Ptr " ) ;
return os ;
}
IIStream & operator > > ( IIStream & is , cv : : gapi : : wip : : IStreamSource : : Ptr & )
@ -429,7 +429,7 @@ struct putToStream<Ref, std::tuple<>>
{
static void put ( IOStream & , const Ref & )
{
GAPI_Assert ( false & & " Unsupported type for GArray/GOpaque serialization " ) ;
GAPI_Error ( " Unsupported type for GArray/GOpaque serialization " ) ;
}
} ;
@ -454,7 +454,7 @@ struct getFromStream<Ref, std::tuple<>>
{
static void get ( IIStream & , Ref & , cv : : detail : : OpaqueKind )
{
GAPI_Assert ( false & & " Unsupported type for GArray/GOpaque deserialization " ) ;
GAPI_Error ( " Unsupported type for GArray/GOpaque deserialization " ) ;
}
} ;
@ -560,7 +560,7 @@ IOStream& operator<< (IOStream& os, const cv::GArg &arg) {
case cv : : detail : : OpaqueKind : : CV_RECT : os < < arg . get < cv : : Rect > ( ) ; break ;
case cv : : detail : : OpaqueKind : : CV_SCALAR : os < < arg . get < cv : : Scalar > ( ) ; break ;
case cv : : detail : : OpaqueKind : : CV_MAT : os < < arg . get < cv : : Mat > ( ) ; break ;
default : GAPI_Assert ( false & & " GArg: Unsupported (unknown?) opaque value type " ) ;
default : GAPI_Error ( " GArg: Unsupported (unknown?) opaque value type " ) ;
}
}
return os ;
@ -597,7 +597,7 @@ IIStream& operator>> (IIStream& is, cv::GArg &arg) {
HANDLE_CASE ( SCALAR , cv : : Scalar ) ;
HANDLE_CASE ( MAT , cv : : Mat ) ;
# undef HANDLE_CASE
default : GAPI_Assert ( false & & " GArg: Unsupported (unknown?) opaque value type " ) ;
default : GAPI_Error ( " GArg: Unsupported (unknown?) opaque value type " ) ;
}
}
return is ;
@ -665,7 +665,7 @@ struct initCtor<Ref, std::tuple<>>
{
static void init ( cv : : gimpl : : Data & )
{
GAPI_Assert ( false & & " Unsupported type for GArray/GOpaque deserialization " ) ;
GAPI_Error ( " Unsupported type for GArray/GOpaque deserialization " ) ;
}
} ;