示例#1
0
        public BatchMode(CommandLineOptions options)
        {
            //Lets setup the batch mode....
            try
            {
                _options = options;
                ReadInJobFromOption();

                //load the wrist and files
                _fullWrist.LoadSelectBonesAndDistancesForBatchMode(new int[] { _testBoneIndex }, new int[] { _refBoneIndex }); //only load selective bones..

                //process parts
                if (_cDistances != null)
                {
                    CalculateAndSaveContours();
                }
                if (_cAreas != null)
                {
                    CalcualteAndSaveContourByArea();
                }
            }
            catch (Exception ex)
            {
                libWrist.ExceptionHandling.HandledExceptionManager.ShowDialog("Error processing batch mode.\n" + ex.Message, "Batch mode did not succeed", "", ex);
                System.Environment.Exit(1);
            }
        }