コード例 #1
0
 private void ShowCluster(int clusterId)
 {
     if (bitmapReader != null && clusters != null)
     {
         Thumbnails.Clear();
         foreach (int descriptorId in clusters[clusterId])
         {
             // TODO verbose (videoID, shotID...)
             Bitmap bitmap = bitmapReader.ReadFrame(descriptorId);
             Thumbnails.Add(new Thumbnail(descriptorId.ToString(), BitmapToImageSource(bitmap)));
         }
     }
 }
コード例 #2
0
 private void ShowDisplay(int displayId)
 {
     if (bitmapReader != null && log != null)
     {
         Thumbnails.Clear();
         int   selectedItemId = log[displayId].Item1;
         int[] displayedItems = log[displayId].Item2;
         foreach (int displayedId in displayedItems)
         {
             // TODO verbose (videoID, shotID...)
             Bitmap bitmap = bitmapReader.ReadFrame(displayedId);
             if (selectedItemId == displayedId)
             {
                 MarkSelectedItem(bitmap);
             }
             Thumbnails.Add(new Thumbnail(displayedId.ToString(), BitmapToImageSource(bitmap)));
         }
     }
 }