Esempio n. 1
0
        /// <summary>
        /// Return the list of the rectangles' objectness value,.
        /// </summary>
        /// <returns></returns>
        public VectorOfFloat GetObjectnessValues()
        {
            //pretty sure that the vector<float> is owned by the saliency object, so we shouldn't dispose it.
            VectorOfFloat vector = new VectorOfFloat();

            SaliencyInvoke.cveObjectnessBINGGetObjectnessValues(_ptr, vector);
            return(vector);
        }
Esempio n. 2
0
 /// <summary>
 /// Return the list of the rectangles' objectness value.
 /// </summary>
 /// <returns>The list of the rectangles' objectness value.</returns>
 public float[] GetObjectnessValues()
 {
     using (VectorOfFloat vector = new VectorOfFloat())
     {
         SaliencyInvoke.cveObjectnessBINGGetObjectnessValues(_ptr, vector);
         return(vector.ToArray());
     }
 }