/// <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(); } } }
/// <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); }
public DebuggerProxy(VectorOfERStat v) { _v = v; }
/// <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); }
/// <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); }
/// <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); }