资源简介
用c语言写的K君子算法,调用GDAL库,可以打开任意格式的图像,自定义分类书目,实现遥感图像监督分类。
代码片段和文件信息
// GDALImageProcess.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “GDALImageProcess.h“
#include “MainFrm.h“
#include “GDALImageProcessDoc.h“
#include “GDALImageProcessView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGDALImageProcessApp
BEGIN_MESSAGE_MAP(CGDALImageProcessApp CWinApp)
//{{AFX_MSG_MAP(CGDALImageProcessApp)
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)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGDALImageProcessApp construction
CGDALImageProcessApp::CGDALImageProcessApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CGDALImageProcessApp object
CGDALImageProcessApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CGDALImageProcessApp initialization
BOOL CGDALImageProcessApp::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.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// 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.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CGDALImageProcessDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CGDALImageProcessView));
AddDocTemplate(pDocTemplate);
// 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;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1154 2012-10-25 19:46 Image.h
文件 1901 2012-10-22 12:41 ImageInfoDlg.cpp
文件 1288 2012-10-22 12:41 ImageInfoDlg.h
文件 4059 2012-10-24 22:21 ImageOpenDlg.cpp
文件 1642 2012-10-24 13:20 ImageOpenDlg.h
文件 4855 2012-10-22 18:48 ImgInfoDlg.cpp
文件 1772 2012-10-22 12:56 ImgInfoDlg.h
文件 2965 2012-08-27 16:41 MainFrm.cpp
文件 1440 2012-08-27 16:40 MainFrm.h
文件 961 2012-10-29 19:10 NClassDlg.cpp
文件 1211 2012-10-29 19:10 NClassDlg.h
文件 4551 2012-07-15 11:13 ReadMe.txt
文件 2544 2012-10-29 19:10 resource.h
文件 218 2012-07-15 11:13 StdAfx.cpp
文件 1054 2012-07-15 11:13 StdAfx.h
文件 1078 2012-07-15 11:13 res\GDALImageProcess.ico
文件 408 2012-07-15 11:13 res\GDALImageProcess.rc2
文件 1078 2012-07-15 11:13 res\GDALImageProcessDoc.ico
文件 1078 2012-07-15 11:13 res\Toolbar.bmp
文件 1578452 2012-10-29 20:55 sample\5类.tif
文件 984439 2012-10-15 20:02 sample\6波段.tif
文件 1599325 2012-10-20 13:01 sample\6波段TIFF.tif
文件 1578452 2012-10-29 20:56 sample\8类.tif
文件 31960 2012-10-30 19:19 GDALImageProcess.aps
文件 4580 2012-11-01 18:05 GDALImageProcess.clw
文件 4389 2012-07-15 11:13 GDALImageProcess.cpp
文件 5189 2012-10-29 19:12 GDALImageProcess.dsp
文件 540 2012-07-15 11:13 GDALImageProcess.dsw
文件 1466 2012-07-15 11:13 GDALImageProcess.h
文件 336896 2012-11-01 18:05 GDALImageProcess.ncb
............此处省略13个文件信息
相关资源
- Gauss消去法、列主元素消去法、Dooli
- OpengGL三维立方体纹理贴图
- GDI+教程C++中文版.pdf
- VC++和OpenGL读取3DS文件并显示的完整源
- OpenFOAM 6 user guide
- 编译原理 课程设计 DAG 报告+源码C++版
- Virtual Machine Design and Implementation in C
- 《大棚温湿度自动控制系统》 包括
- 用c++做数据曲线和函数曲线
- GUN C库手册
- c++太空射击代码Opengl
- rgb转YUV源代码
- openg读取3ds文件,含view3ds软件
- Programming_With_Microsoft_Visual_C++_.Net
- gdi+游戏框架这是一个用vc6.0写的Win3
- 经典数字图像测试图灰度图,jpg,b
- C++游戏开发指南C++ Game Development Cook
- 基于OpenGL的DEM显示
- C语言 opengl 3d 游戏开发 源码
- SDL Game Development.pdf
- Microsoft Visual C++ 2008 SP1 Redistributable
- GPS应用程序设计 卫星位置计算,绝对
- OpenGL实现鼠标绕任意轴旋转/平移/缩放
- C++ Game Development Cookbook
- 百度OCR文字识别依赖库-libcurl、opens
- Microsoft Visual C++ 2008 SP1 Redistributable
- deep learning卷积神经网络CNN在C++环境下
- 64位png2jpg
- Windows GDI 飞机游戏源码和图片
- MPEG2-TS格式分析工具 1.1 源代码
评论
共有 条评论