예제 #1
0
 /// <summary>
 /// Create the standard vector of VectorOfERStat
 /// </summary>
 public VectorOfVectorOfERStat(MCvERStat[][] values)
     : this()
 {
     using (VectorOfERStat v = new VectorOfERStat())
     {
         for (int i = 0; i < values.Length; i++)
         {
             v.Push(values[i]);
             Push(v);
             v.Clear();
         }
     }
 }
예제 #2
0
        /// <summary>
        /// Convert the standard vector to arrays of int
        /// </summary>
        /// <returns>Arrays of int</returns>
        public MCvERStat[][] ToArrayOfArray()
        {
            int size = Size;

            MCvERStat[][] res = new MCvERStat[size][];
            for (int i = 0; i < size; i++)
            {
                using (VectorOfERStat v = this[i])
                {
                    res[i] = v.ToArray();
                }
            }
            return(res);
        }
예제 #3
0
 public DebuggerProxy(VectorOfERStat v)
 {
     _v = v;
 }
예제 #4
0
 /// <summary>
 /// Push multiple values from the other vector into this vector
 /// </summary>
 /// <param name="other">The other vector, from which the values will be pushed to the current vector</param>
 public void Push(VectorOfERStat other)
 {
     VectorOfERStatPushVector(_ptr, other);
 }
예제 #5
0
파일: ERFilter.cs 프로젝트: vinchu/emgucv
 /// <summary>
 /// Takes image on input and returns the selected regions in a vector of ERStat only distinctive ERs which correspond to characters are selected by a sequential classifier
 /// </summary>
 /// <param name="image">Sinle channel image CV_8UC1</param>
 /// <param name="regions">Output for the 1st stage and Input/Output for the 2nd. The selected Extremal Regions are stored here.</param>
 public void Run(IInputArray image, VectorOfERStat regions)
 {
     using (InputArray iaImage = image.GetInputArray())
         ContribInvoke.CvERFilterRun(_ptr, iaImage, regions);
 }
예제 #6
0
 /// <summary>
 /// Push a value into the standard vector
 /// </summary>
 /// <param name="value">The value to be pushed to the vector</param>
 public void Push(VectorOfERStat value)
 {
     VectorOfVectorOfERStatPush(_ptr, value.Ptr);
 }