/// <summary> /// Forms list of changed images by color masks /// </summary> public static List <BitmapImage> GetMasks(int IndexOfImageInUserData, int CroppingMode) { List <BitmapImage> images = new List <BitmapImage>(); List <char> symbols = UserData.SymbolMarkers; string pathToSource = UserData.GetPathToImage(IndexOfImageInUserData, UserData.MARKER_TYPE_MASK); string pathToCsvMask = UserData.GetPathToCsvFile(IndexOfImageInUserData); List <BitmapImage> croppedImages = ImageProcess.CropMasks(pathToSource, pathToCsvMask, symbols, CroppingMode); foreach (BitmapImage croppedImage in croppedImages) { images.Add(croppedImage); } return(images); }