Exemplo n.º 1
0
        /// <summary>
        /// Returns the next label in the Index set selected based on the selection criteria.
        /// </summary>
        /// <param name="type">Specifies the selection type (e.g. RANDOM, SEQUENTIAL).</param>
        /// <param name="bBoosted">Optionally, specifies to use label sets of boosted images (default = false).</param>
        /// <returns>The next label index is returned.</returns>
        public virtual int?GetNextLabel(Index.SELECTION_TYPE type, bool bBoosted = false)
        {
            LabelIndex rgIdx = (bBoosted) ? m_rgLabelsBoosted : m_rgLabels;

            if (rgIdx.Count == 0)
            {
                return(null);
            }

            return(rgIdx.GetNextLabel(type, null, false));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Returns the next label in the Index set selected based on the selection criteria.
        /// </summary>
        /// <param name="type">Specifies the selection type (e.g. RANDOM, SEQUENTIAL).</param>
        /// <param name="bBoosted">Optionally, specifies to use label sets of boosted images (default = false).</param>
        /// <returns>The next label index is returned.</returns>
        public override int?GetNextLabel(Index.SELECTION_TYPE type, bool bBoosted = false)
        {
            LabelIndex rgIdx = (bBoosted) ? m_rgLabelsBoosted : m_rgLabels;

            if (rgIdx.Count == 0)
            {
                return(null);
            }

            int?nIdx = rgIdx.GetNextLabel(type, null, m_bUseUniqueLabelIndexes);

            if (rgIdx.IsEmpty)
            {
                rgIdx.ReLoad();
            }

            return(nIdx);
        }