Exemplo n.º 1
0
 public void MergeFrom(CNNSegParam other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ModelType.Length != 0)
     {
         ModelType = other.ModelType;
     }
     if (other.networkParam_ != null)
     {
         if (networkParam_ == null)
         {
             networkParam_ = new global::Apollo.Perception.Lidar.NetworkParam();
         }
         NetworkParam.MergeFrom(other.NetworkParam);
     }
     if (other.featureParam_ != null)
     {
         if (featureParam_ == null)
         {
             featureParam_ = new global::Apollo.Perception.Lidar.FeatureParam();
         }
         FeatureParam.MergeFrom(other.FeatureParam);
     }
     if (other.DoClassification != false)
     {
         DoClassification = other.DoClassification;
     }
     if (other.DoHeading != false)
     {
         DoHeading = other.DoHeading;
     }
     if (other.GpuId != 0)
     {
         GpuId = other.GpuId;
     }
     if (other.GroundDetector.Length != 0)
     {
         GroundDetector = other.GroundDetector;
     }
     if (other.RoiFilter.Length != 0)
     {
         RoiFilter = other.RoiFilter;
     }
     if (other.RemoveGroundPoints != false)
     {
         RemoveGroundPoints = other.RemoveGroundPoints;
     }
     if (other.ObjectnessThresh != 0F)
     {
         ObjectnessThresh = other.ObjectnessThresh;
     }
     if (other.ConfidenceThresh != 0F)
     {
         ConfidenceThresh = other.ConfidenceThresh;
     }
     if (other.HeightThresh != 0F)
     {
         HeightThresh = other.HeightThresh;
     }
     if (other.MinPtsNum != 0)
     {
         MinPtsNum = other.MinPtsNum;
     }
     if (other.ConfidenceRange != 0F)
     {
         ConfidenceRange = other.ConfidenceRange;
     }
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ModelType.Length != 0)
            {
                hash ^= ModelType.GetHashCode();
            }
            if (networkParam_ != null)
            {
                hash ^= NetworkParam.GetHashCode();
            }
            if (featureParam_ != null)
            {
                hash ^= FeatureParam.GetHashCode();
            }
            if (DoClassification != false)
            {
                hash ^= DoClassification.GetHashCode();
            }
            if (DoHeading != false)
            {
                hash ^= DoHeading.GetHashCode();
            }
            if (GpuId != 0)
            {
                hash ^= GpuId.GetHashCode();
            }
            if (GroundDetector.Length != 0)
            {
                hash ^= GroundDetector.GetHashCode();
            }
            if (RoiFilter.Length != 0)
            {
                hash ^= RoiFilter.GetHashCode();
            }
            if (RemoveGroundPoints != false)
            {
                hash ^= RemoveGroundPoints.GetHashCode();
            }
            if (ObjectnessThresh != 0F)
            {
                hash ^= ObjectnessThresh.GetHashCode();
            }
            if (ConfidenceThresh != 0F)
            {
                hash ^= ConfidenceThresh.GetHashCode();
            }
            if (HeightThresh != 0F)
            {
                hash ^= HeightThresh.GetHashCode();
            }
            if (MinPtsNum != 0)
            {
                hash ^= MinPtsNum.GetHashCode();
            }
            if (ConfidenceRange != 0F)
            {
                hash ^= ConfidenceRange.GetHashCode();
            }
            return(hash);
        }