示例#1
0
 /// <summary>
 /// Returns output quality map images that were generated during computation, if supported by the algorithm.
 /// </summary>
 /// <param name="qualityBase">The quality base object</param>
 /// <param name="dst">Output quality map images that were generated during computation, if supported by the algorithm.</param>
 public static void GetQualityMap(
     this IQualityBase qualityBase,
     IOutputArrayOfArrays dst)
 {
     using (OutputArray oaDst = dst.GetOutputArray())
         cveQualityBaseGetQualityMap(qualityBase.QualityBasePtr, oaDst);
 }
示例#2
0
        /// <summary>
        /// Compute quality score per channel with the per-channel score in each element of the result
        /// </summary>
        /// <param name="qualityBase">The quality base object</param>
        /// <param name="cmpImgs">Comparison image(s), or image(s) to evaluate for no-reference quality algorithms</param>
        /// <returns>Quality score per channel</returns>
        public static MCvScalar Compute(
            this IQualityBase qualityBase,
            IInputArrayOfArrays cmpImgs)
        {
            MCvScalar score = new MCvScalar();

            using (InputArray iaCmpImgs = cmpImgs.GetInputArray())
                cveQualityBaseCompute(qualityBase.QualityBasePtr, iaCmpImgs, ref score);
            return(score);
        }