资源简介
将一幅黑白图像进行三种变换,变成彩色图片
![](http://www.nz998.com/pic/67065.jpg)
代码片段和文件信息
// chap1_5.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “chap1_5.h“
#include “MainFrm.h“
#include “ChildFrm.h“
#include “chap1_5Doc.h“
#include “chap1_5View.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CChap1_5App
BEGIN_MESSAGE_MAP(CChap1_5App CWinApp)
//{{AFX_MSG_MAP(CChap1_5App)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CChap1_5App construction
CChap1_5App::CChap1_5App()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CChap1_5App object
CChap1_5App theApp;
/////////////////////////////////////////////////////////////////////////////
// CChap1_5App initialization
BOOL CChap1_5App::InitInstance()
{
AfxEnableControlContainer();
// 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(); // Load standard INI file options (including MRU)
// Register the application‘s document templates. Document templates
// serve as the connection between documents frame windows and views.
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_CHAP1_TYPE
RUNTIME_CLASS(CChap1_5Doc)
RUNTIME_CLASS(CChildframe) // custom MDI child frame
RUNTIME_CLASS(CChap1_5View));
AddDocTemplate(pDocTemplate);
// create main MDI frame window
CMainframe* pMainframe = new CMainframe;
if (!pMainframe->Loadframe(IDR_MAINframe))
return FALSE;
m_pMainWnd = pMainframe;
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The main window has been initialized so show and update it.
pMainframe->ShowWindow(SW_SHOWMAXIMIZED);
pMainframe->UpdateWindow();
return TRUE;
}
//////////////////////////////////////////////////////////
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 29224 2013-05-08 18:13 middle\chap1_5.aps
文件 2802 2013-05-08 18:50 middle\chap1_5.clw
文件 4146 2007-09-21 07:01 middle\chap1_5.cpp
文件 4842 2007-09-21 09:36 middle\chap1_5.dsp
文件 539 2007-09-21 09:36 middle\chap1_5.dsw
文件 1367 2007-09-21 07:01 middle\chap1_5.h
文件 74752 2013-05-08 18:54 middle\chap1_5.ncb
文件 51712 2013-05-08 18:54 middle\chap1_5.opt
文件 248 2013-05-08 18:50 middle\chap1_5.plg
文件 12092 2009-11-09 11:04 middle\chap1_5.rc
文件 878 2009-11-09 11:26 middle\chap1_5.sln
..A..H. 31744 2013-05-08 18:24 middle\chap1_5.suo
文件 9364 2009-11-09 11:26 middle\chap1_5.vcproj
文件 1427 2009-11-09 11:27 middle\chap1_5.vcproj.WW-391E1C3E8799.ww.user
文件 2172 2007-09-21 07:05 middle\chap1_5Doc.cpp
文件 1744 2007-09-21 14:26 middle\chap1_5Doc.h
文件 5064 2013-05-08 18:40 middle\chap1_5View.cpp
文件 1771 2013-05-08 18:40 middle\chap1_5View.h
文件 1534 2007-09-21 07:01 middle\ChildFrm.cpp
文件 1397 2007-09-21 07:01 middle\ChildFrm.h
文件 5374976 2013-05-08 18:44 middle\Debug\chap1_5.bsc
文件 135246 2013-05-08 18:50 middle\Debug\chap1_5.exe
文件 368776 2013-05-08 18:50 middle\Debug\chap1_5.ilk
文件 23998 2013-05-08 18:44 middle\Debug\chap1_5.obj
文件 6940280 2013-05-08 18:43 middle\Debug\chap1_5.pch
文件 369664 2013-05-08 18:50 middle\Debug\chap1_5.pdb
文件 7544 2013-05-08 18:25 middle\Debug\chap1_5.res
文件 0 2013-05-08 18:44 middle\Debug\chap1_5.sbr
文件 18407 2013-05-08 18:44 middle\Debug\chap1_5Doc.obj
文件 0 2013-05-08 18:44 middle\Debug\chap1_5Doc.sbr
............此处省略35个文件信息
- 上一篇:struts2必备包+json包.rar
- 下一篇:com口各种驱动
相关资源
- 通过x264录制RGB屏幕视频vs2013工程,
- 把RGB转换为HSV和HSI然后根据黄色和蓝
- 最简单的基于FFmpeg的libswscale的教程
- 颜色提取工具,可以方便提取出某一
- 简单\“(8bit)Raw图像文件转换为(
- bumblebee双目标定/伪彩色深度图/鼠标测
- RGB565格式转BMP
- YUV Viewer 附测试文件格式:yuv420
- RGB与IHS间转换及灰度化
- OpenGL ES 显示RGB数据
- STM32F103驱动ILI9341DS18B20RTCADCIRED
- 读取Tiff文件中CMYK色彩模式存储的图像
- 基于FPGA的彩色图片转灰度实现
- ICN6211资料及寄存器配置生成器
- YUV转RGB 的verilog代码
- STM32F103ZET控制WS2811/SM16703P驱动RGB全彩
- ICN6211:MIPI转RGB数据手册
- RGB数值与16进制相互转换
- hls_rgb2gray.zip
- FPGA的RGB转灰度
- kinect2_SDK_深度图到RGB的映射
- STM32实验RGB彩灯控制.zip
- libx264 将rgb24格式转换为h264 vs2013
- 数字图像处理数据集六-McMaster
- RGB到HIS图像转换
- 获取图片每个像素点的rgb值源码
- ICN6211规格书MIPI DSI转RGB
- preview_rgb24.rar
- 图像伪彩色增强,包括强度分层法、
- 基于STM32F767驱动 LTDC LCDRGB屏
评论
共有 条评论