You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or an absolute or relative difference norm if src2 is there:
659
-
660
-
661
647
As example for one array consider the function \f$r(x)= \begin{pmatrix} x \\ 1-x \end{pmatrix}, x \in [-1;1]\f$.
662
648
The \f$ L_{1}, L_{2} \f$ and \f$ L_{\infty} \f$ norm for the sample value \f$r(-1) = \begin{pmatrix} -1 \\ 2 \end{pmatrix}\f$
663
649
is calculated as follows
@@ -676,14 +662,16 @@ The following graphic shows all values for the three norm functions \f$\| r(x) \
676
662
It is notable that the \f$ L_{1} \f$ norm forms the upper and the \f$ L_{\infty} \f$ norm forms the lower border for the example function \f$ r(x) \f$.
677
663

678
664
679
-
The function cv::norm returns the calculated norm.
680
-
681
665
When the mask parameter is specified and it is not empty, the norm is
666
+
667
+
If normType is not specified, NORM_L2 is used.
682
668
calculated only over the region specified by the mask.
683
669
684
670
Multi-channel input arrays are treated as single-channel arrays, that is,
685
671
the results for all channels are combined.
686
672
673
+
Hamming norms can only be calculated with CV_8U depth arrays.
674
+
687
675
@param src1 first input array.
688
676
@param normType type of the norm (see cv::NormTypes).
689
677
@param mask optional operation mask; it must have the same size as src1 and CV_8UC1 type.
@@ -696,18 +684,6 @@ This version of cv::norm calculates the absolute difference norm
696
684
or the relative difference norm of arrays src1 and src2.
697
685
The type of norm to calculate is specified using cv::NormTypes.
0 commit comments