医学图片DICOM格式打开以及像素计算


(MFC单文档实现,添加了对话框)医学图片DICOM格式打开以及BITMAP转换, 图片像素计算等等
资源截图
代码片段和文件信息

// DICOM.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “afxwinappex.h“
#include “afxdialogex.h“
#include “DICOM.h“
#include “MainFrm.h“

#include “DICOMDoc.h“
#include “DICOMView.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CDICOMApp

BEGIN_MESSAGE_MAP(CDICOMApp CWinAppEx)
ON_COMMAND(ID_APP_ABOUT &CDICOMApp::OnAppAbout)
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW &CWinAppEx::OnFileNew)
ON_COMMAND(ID_FILE_OPEN &CWinAppEx::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP &CWinAppEx::OnFilePrintSetup)
END_MESSAGE_MAP()


// CDICOMApp construction

CDICOMApp::CDICOMApp()
{
m_bHiColorIcons = TRUE;

// support Restart Manager
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_ALL_ASPECTS;
#ifdef _MANAGED
// If the application is built using Common Language Runtime support (/clr):
//     1) This additional setting is needed for Restart Manager support to work properly.
//     2) In your project you must add a reference to System.Windows.Forms in order to build.
System::Windows::Forms::Application::SetUnhandledExceptionMode(System::Windows::Forms::UnhandledExceptionMode::ThrowException);
#endif

// TODO: replace application ID string below with unique ID string; recommended
// format for string is CompanyName.ProductName.SubProduct.VersionInformation
SetAppID(_T(“DICOM.AppID.NoVersion“));

// TODO: add construction code here
// Place all significant initialization in InitInstance
}

// The one and only CDICOMApp object

CDICOMApp theApp;


// CDICOMApp initialization

BOOL CDICOMApp::InitInstance()
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles.  Otherwise any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinAppEx::InitInstance();


// Initialize OLE libraries
if (!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return FALSE;
}

AfxEnableControlContainer();

EnableTaskbarInteraction(FALSE);

// AfxInitRichEdit2() is required to use RichEdit control
// AfxInitRichEdit2();

// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need
// Change the registry key under which our settings are stored
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
LoadStdProfileSettings(4);  // Load standard IN

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件      243712  2018-08-13 10:52  DebugDICOM.exe
     文件     2074140  2018-08-13 10:52  DebugDICOM.ilk
     文件     6081536  2018-08-13 10:52  DebugDICOM.pdb
     文件     5262274  2017-11-02 13:39  DICOM0002.dcm
     文件        3942  2018-08-13 10:52  DICOMDebugcl.command.1.tlog
     文件       73526  2018-08-13 10:52  DICOMDebugCL.read.1.tlog
     文件        3074  2018-08-13 10:52  DICOMDebugCL.write.1.tlog
     文件         667  2018-08-09 18:00  DICOMDebugDICOM.exe.embed.manifest
     文件         732  2018-08-09 18:00  DICOMDebugDICOM.exe.embed.manifest.res
     文件         381  2018-08-13 10:52  DICOMDebugDICOM.exe.intermediate.manifest
     文件          45  2018-08-13 10:52  DICOMDebugDICOM.lastbuildstate
     文件        2205  2018-08-13 10:52  DICOMDebugDICOM.log
     文件       56263  2018-08-10 12:09  DICOMDebugDICOM.obj
     文件    33751040  2018-08-09 16:22  DICOMDebugDICOM.pch
     文件       88212  2018-08-10 12:06  DICOMDebugDICOM.res
     文件         713  2018-08-09 14:57  DICOMDebugDICOM.vcxprojResolveAssemblyReference.cache
     文件           0  2018-08-09 14:57  DICOMDebugDICOM.write.1.tlog
     文件       64352  2018-08-10 12:09  DICOMDebugDICOMDoc.obj
     文件       53966  2018-08-13 10:52  DICOMDebugDICOMView.obj
     文件         200  2018-08-09 14:57  DICOMDebugDICOM_manifest.rc
     文件           2  2018-08-13 10:52  DICOMDebuglink-cvtres.read.1.tlog
     文件           2  2018-08-13 10:52  DICOMDebuglink-cvtres.write.1.tlog
     文件           2  2018-08-13 10:52  DICOMDebuglink.10824-cvtres.read.1.tlog
     文件           2  2018-08-13 10:52  DICOMDebuglink.10824-cvtres.write.1.tlog
     文件           2  2018-08-13 10:52  DICOMDebuglink.10824.read.1.tlog
     文件           2  2018-08-13 10:52  DICOMDebuglink.10824.write.1.tlog
     文件           2  2018-08-13 10:52  DICOMDebuglink.11236-cvtres.read.1.tlog
     文件           2  2018-08-13 10:52  DICOMDebuglink.11236-cvtres.write.1.tlog
     文件           2  2018-08-13 10:52  DICOMDebuglink.11236.read.1.tlog
     文件           2  2018-08-13 10:52  DICOMDebuglink.11236.write.1.tlog
     文件        1750  2018-08-13 10:52  DICOMDebuglink.command.1.tlog
............此处省略43个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)