ITK:捕获异常
ITK:捕獲異常
- 內容提要
- 輸出結果
- C++實現代碼
內容提要
嘗試捕獲一個itk :: ExceptionObject。異常將打印到控制臺輸出。當程序崩潰時,這可以提供更多信息,包括異常發生的位置及其描述。ITK中的異常通常僅在對-> Update()的調用期間引發,因此僅-> Update() 調用會添加到try塊中。
輸出結果
ExceptionObject caught ! itk::ImageFileReaderException (0x20cece0) Location: "void itk::ImageFileReader<TOutputImage, ConvertPixelTraits>::GenerateOutputInformation() [with TOutputImage = itk::Image<double, 2u>, ConvertPixelTraits = itk::DefaultConvertPixelTraits<double>]" File: /path/to/ITK/Modules/IO/ImageBase/include/itkImageFileReader.hxx Line: 143 Description: Could總結
- 上一篇: 新疆的盘龙古道是多少号公路
- 下一篇: ITK:获取PointSet的边界框