typename channel_traits<ChannelDst>::reference operator()( typename channel_traits<ChannelSrc>::const_reference ch1,
	                                                           typename channel_traits<ChannelDst>::reference ch2 ) const
	{
		return ch2 = std::max( ChannelDst( ch1 ), ch2 );
	}
예제 #2
0
 GIL_FORCEINLINE
 typename channel_traits<ChannelDst>::reference operator()(const Scalar s,
                                                           typename channel_traits<ChannelDst>::reference ch) const
 {
     return ch -= ChannelDst(s);
 }
예제 #3
0
 GIL_FORCEINLINE
 typename channel_traits<ChannelDst>::reference operator()(typename channel_traits<ChannelSrc>::const_reference ch1,
                                                           typename channel_traits<ChannelDst>::reference ch2) const
 {
     return ch2 -= ChannelDst(ch1);
 }
    typename channel_traits<ChannelDst>::reference
	operator()( const Scalar& s,
	            typename channel_traits<ChannelDst>::reference ch ) const {
        return ch += ChannelDst(s);
    }