Beispiel #1
0
 /// <summary>
 /// Copies tags matching mask to the destination dataset.
 /// </summary>
 /// <param name="destination">Destination Dataset</param>
 /// <param name="mask">Tags to copy</param>
 /// <returns>Current Dataset</returns>
 public DicomDataset CopyTo(DicomDataset destination, DicomMaskedTag mask)
 {
     if (destination != null)
     {
         destination.Add(_items.Values.Where(x => mask.IsMatch(x.Tag)));
     }
     return(this);
 }
Beispiel #2
0
 /// <summary>
 /// Copies tags matching mask to the destination dataset.
 /// </summary>
 /// <param name="destination">Destination Dataset</param>
 /// <param name="mask">Tags to copy</param>
 /// <returns>Current Dataset</returns>
 public DicomDataset CopyTo(DicomDataset destination, DicomMaskedTag mask)
 {
     destination?.AddOrUpdate(_items.Values.Where(x => mask.IsMatch(x.Tag)));
     return(this);
 }
 /// <summary>
 /// Enumerates DICOM items matching mask.
 /// </summary>
 /// <param name="dataset">Dataset from which masked items should be retrieved.</param>
 /// <param name="mask">Requested mask.</param>
 /// <returns>Enumeration of masked DICOM items.</returns>
 public static IEnumerable <DicomItem> EnumerateMasked(this DicomDataset dataset, DicomMaskedTag mask)
 {
     return(dataset.Where(x => mask.IsMatch(x.Tag)));
 }
		/// <summary>
		/// Enumerates DICOM items matching mask.
		/// </summary>
		/// <param name="mask">Mask</param>
		/// <returns>Enumeration of DICOM items</returns>
		public static IEnumerable<DicomItem> EnumerateMasked(this DicomDataset dataset, DicomMaskedTag mask) {
			return dataset.Where(x => mask.IsMatch(x.Tag));
		}