原创 ITK深拷貝itk::Image
ITK版本:5.0.1 1. 自己實現拷貝數據: template<typename TPixel, uint Dim> void deepCopyItkImageData(const itk::Image<TPixel, Dim
原创 DICOM Modality (0008,0060) - C++ enum
/** Type of equipment that originally acquired the data used to create the images in this Series. Tag: (0008,0060
原创 OpenCV 3各模塊說明
模塊 說明 Core 該模塊包含 OpenCV 庫的基礎結構以及基本操作。 Improc 圖像處理模塊包含基本的圖像轉換,包括濾波以及類似的卷積操作。 Highgui 在 OpenCV 3.0中,分割爲 im
原创 windows的dierent.h
github傳送門:https://github.com/tronkko/dirent 將dirent.h拷貝至如:C:\Program Files\Microsoft Visual Studio 9.0\VC\include.目錄下。
原创 C++設計一個精度達納秒的計時器
可計時 納秒-小時 /************************************************************************************ ** ** Copyright (C)
原创 VTK vtkImageData轉vtkPolyData
#include <vtkImageToPolyDataFilter.h>
原创 微軟開源C++標準庫(STL)
近日,在 CPP 2019 大會上,微軟 VC 團隊宣佈,把將C++ 標準庫的實現開源!方便了C++程序員深層次學習STL。 Github傳送門: https://github.com/microsoft/STL
原创 C++庫或軟件版本宏定義方式示例
#include <iostream> #include <string> #define XX_VERSION_MAJOR 1 // 主版本號 #define XX_VERSION_MINOR
原创 Google C++代碼風格指南(在線版)
英文版:https://google.github.io/styleguide/cppguide.html 中文版:https://zh-google-styleguide.readthedocs.io/en/latest/content
原创 C++判斷大小端
bool isLittleEndian() { union U { int i; char c; }; U u; u.i = 1; return u
原创 Qt VTK顯示單張DICOM圖像並調節窗寬窗位
開發環境: Qt 5.12.7( & Visual Studio 2017) VTK 8.2.0 源代碼: #include <QtWidgets/QApplication> #include <vtkAutoInit.h> VTK_
原创 Visual Studio(VS)啓用更新的 __cplusplus 宏
/Zc:__cplusplus 編譯器選項啓用 __cplusplus 預處理器宏以針對最新的 C++ 語言標準支持報告更新的值。 默認情況下,Visual Studio 始終爲 __cplusplus 預處理器宏返回值“1997