コード例 #1
0
 public void CollectionFilter(AllClassLabels classLabelElement)
 {
     foreach (ImagePathClassLabelProbability element in ImageCollection.Where(image => image.ClassLabel == classLabelElement.ClassLabel))
     {
         SingleClassLabelCollection.Add(new SingleClassLabel()
         {
             Image = element.Image
         });
     }
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("SingleClassLabelCollection"));
 }
コード例 #2
0
 public LogbookImage GetImage(string fileName)
 {
     return(ImageCollection.Where(t => t.FileName == fileName).FirstOrDefault());
 }