| 4243 | |
| 4244 | |
| 4245 | void normalize( const SparseMat& src, SparseMat& dst, double a, int norm_type ) |
| 4246 | { |
| 4247 | double scale = 1; |
| 4248 | if( norm_type == CV_L2 || norm_type == CV_L1 || norm_type == CV_C ) |
| 4249 | { |
| 4250 | scale = norm( src, norm_type ); |
| 4251 | scale = scale > DBL_EPSILON ? a/scale : 0.; |
| 4252 | } |
| 4253 | else |
| 4254 | CV_Error( CV_StsBadArg, "Unknown/unsupported norm type" ); |
| 4255 | |
| 4256 | src.convertTo( dst, -1, scale ); |
| 4257 | } |
| 4258 | |
| 4259 | ////////////////////// RotatedRect ////////////////////// |
| 4260 |
no test coverage detected