MCPcopy Create free account
hub / github.com/creatale/node-dv / normalize

Function normalize

deps/opencv/modules/core/src/matrix.cpp:4245–4257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4243
4244
4245void 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

Callers 2

convert.cppFile · 0.70
matmul.cppFile · 0.70

Calls 2

normFunction · 0.70
convertToMethod · 0.45

Tested by

no test coverage detected