예제 #1
0
 private void ConvertStills()
 {
     string[] inputFiles = Directory.GetFiles(StillsInputFolder,
                                              Misc.Constants.Constants.RGB_FILE_PATTERN);
     Parallel.ForEach(inputFiles, i =>
     {
         var converter
             = new RGBToBitmapConverter(i,
                                        Path.Join(
                                            StillsOutputFolder, Path.GetFileNameWithoutExtension(i) + ".jpg"),
                                        ImageFormat.Jpeg);
         converter.Convert();
     });
 }
예제 #2
0
 private void RGBSequenceToBitmap()
 {
     string[] rgbSequences = Directory.GetFiles(InputSequenceFolder,
                                                Misc.Constants.Constants.RGB_FILE_PATTERN);
     Parallel.ForEach(rgbSequences, s =>
     {
         RGBToBitmapConverter converter
             = new RGBToBitmapConverter(s,
                                        Path.Join(
                                            InputSequenceFolder, Path.GetFileNameWithoutExtension(s) + ".jpg"),
                                        ImageFormat.Jpeg);
         converter.Convert();
     });
 }