windows 7 professional 64bit를 사용 중 pc를 재부팅 했는데 갑자기 아래와 같은 블루스크린이 나왔다.


오호...이 오랜만에 보는 블루스크린!!!

SRTSPL.SYS 

PAGE_FAULT_IN_NONPAGED_AREA


문제의 원인은 Symantec Endpoint Protection이 문제였던것!! 왜 갑자기 이런 문제를 발생시킨것인지는 잘 모르겠지만... 

해결방법은

1. 안전모드로 부팅

2. 시작->실행->msconfig 

3. 서비스-> Symantec 관련된 것들 모두 중지.

4. 재부팅 하면 블루스크린 나오지 않음.

5. Symantec 관련 된 것들 모두 삭제!!

6. 다시 재부팅 후 Symantec Endpoint Protection 재설치... 재설치 후 재부팅 해도 블루스크린 나오지 않음.

이래저래 문제는 해결했지만... 이번에 Symantec 제품에 대한 불신이 조금 쌓인 것 같음.

회사에서 사용하는 거라서 안쓸 수는 없고 ㅎ

원인을 몰랐으면 포멧 후 OS 재설치 가야 하나... 라는 고민을 했는데 그래도 원인파악이 되서는 해결 ㅎㅎ

'Computer Story' 카테고리의 다른 글

[Computer Story] 하드디스크별 속도 비교 동영상  (0) 2010.07.16
PS3용 모션 컨트롤러  (0) 2009.06.05
서버 부하 테스트 툴  (0) 2008.12.22
RSA 암호  (0) 2007.09.19
OpenCV 설치하기  (1) 2007.08.19
SSD가 속도가 엄청 빠르다는 걸 느끼게 하는 동영상입니다. 시게이트에서 SSD와 HDD를 접목시킨 하이브리드 HDD를 만들었다면서 만든 동영상인데.. 그래도 역시나 SSD의 속도가 엄청나게 빠르네요. 저의 3년된 노트북에다가 SSD만 바꾸고 싶네요 ㅎㅎ 그러나 가격이 ㅜㅜ/// 음.. .그래도 3년된 노트북을 가지고도 아직 프로그래밍은 잘 하고 있으니~ ㅎㅎ
 

'Computer Story' 카테고리의 다른 글

SRTSPL.SYS page_fault_in_nonpaged_area blue screen  (0) 2012.11.01
PS3용 모션 컨트롤러  (0) 2009.06.05
서버 부하 테스트 툴  (0) 2008.12.22
RSA 암호  (0) 2007.09.19
OpenCV 설치하기  (1) 2007.08.19

소니에서 개발했다는 PS3용 모션컨트롤러... 이 동영상만 봐도... 대단한거 같습니다... 갑자기 PS3가 사고 싶어 지는군요.. ㅎㅎ

'Computer Story' 카테고리의 다른 글

SRTSPL.SYS page_fault_in_nonpaged_area blue screen  (0) 2012.11.01
[Computer Story] 하드디스크별 속도 비교 동영상  (0) 2010.07.16
서버 부하 테스트 툴  (0) 2008.12.22
RSA 암호  (0) 2007.09.19
OpenCV 설치하기  (1) 2007.08.19

Load and Performance Test Tools

Funkload - Web load testing, stress testing, and functional testing tool written in Python and distributed as free software under the GNU GPL. Emulates a web browser (single-threaded) using webunit; https support; produces detailed reports in ReST, HTML, or PDF.

Avalanche - Load-testing appliance from Spirent Communications, designed to stress-test security, network, and Web application infrastructures by generating large quantities of user and network traffic. Simulates as many as two million concurrently-connected users with unique IP addresses, emulates multiple Web browsers, supports Web Services testing Supports HTTP 1.0/1.1, SSL, FTP, RTSP/ RTP, MS Win Media, SMTP, POP3, DNS, Telnet, and Video on Demand over Multicast protocols.

Loadea - Stress testing tool runs on WinXP; free evaluation version for two virtual users. Capture module provides a development environment, utilizes C# scripting and XML based data. Control module defines, schedules, and deploys tests, defines number of virtual users, etc. Analysis module analyzes results and provides reporting capabilities.

LoadManager - Load, Stress, Stability and Performance testing tool from Alvicon. Runs on all platforms supported by Eclipse and Java such as Linux, Windows, HP Unix, and others.

TestLOAD - An automated load testing solution for IBM iSeries from Original Software Group Ltd. Rather than placing artificial load on the network, it runs natively on the server, simulating actual system performance, monitoring and capturing batch activity, server jobs and green-screen activity. For web and other applications.

NeoLoad - Load testing tool for web applications from Neotys with clear and intuitive graphical interface, no scripting/fast learning curve, clear and comprehensive reports and test results. Can design complex scenarios to handle real world applications. Features include data replacement, data extraction, system monitors, SSL recording, PDF and HTML reporting, IP spoofing, and more. Multi-platform: Windows, Linux, Solaris.

PowerProxy - A low cost HTTP/HTTPs proxy, from Orderly Software Ltd., has a range of basic load-testing features to test web servers and show debugging information about every request and response received or sent. For Windows.

webStress - Load and stress testing service from MoniForce BV. Includes recommendations on how to fix performance-related problems.

HostedToolbox - Hosted load testing service from hostedLABS, LLC. Browser based test script recording, no downloads or system requirements Works with any client or server. Executed from hostedLAB's distributed infrastructure with servers in multiple locations.

Test Complete Enterprise - Automated test tool from AutomatedQA Corp. includes web load testing capabilities.

WebPartner Test and Performance Center - Test tool from WebPartner for stress tests, load performance testing, transaction diagnostics and website monitoring of HTTP/HTTPS web transactions and XML/SOAP/WSDL web services.

QTest - Web load testing tool from Quotium Technologies SA. Capabilities include: cookies managed natively, making the script modelling phase shorter; HTML and XML parser, allowing display and retrieval of any element from a HTML page or an XML flux in test scripts; option of developing custom monitors using supplied APIs; more.

LoadDriver - Load test tool from Inforsolutions emphasizes ease of use; directly drives multiple instances of MSIE, rather than simulating browsers. Supports browser-side scripts/objects, HTTP 1.0/1.1, HTTPS, cookies, cache, Windows authentication. Tests can be scriptlessly parameterized with data from text files or custom ODBC data source, for individual userID, password, page to start, think times, data to enter, links to click, cache, initial cache state, etc.

Test Perspective Load Test - Do-it-yourself load testing service from Keynote Systems for Web applications. Utilizes Keynote's load-generating infrastructure on the Internet; conduct realistic outside-the-firewall load and stress tests to validate performance of entire Web application infrastructure.

SiteTester1 - Load test tool from Pilot Software Ltd. Allows definition of requests, jobs, procedures and tests, HTTP1.0/1.1 compatible requests, POST/GET methods, cookies, running in multi-threaded or single-threaded mode, generates various reports in HTML format, keeps and reads XML formatted files for test definitions and test logs. Requires JDK1.2 or higher.

httperf - Web server performance/benchmarking tool from HP Research Labs. Provides a flexible facility for generating various HTTP workloads and measuring server performance. Focus is not on implementing one particular benchmark but on providing a robust, high-performance, extensible tool. Available free as source code.

NetworkTester - Tool (formerly called 'NetPressure') from Agilent Technologies uses real user traffic, including DNS, HTTP, FTP, NNTP, streaming media, POP3, SMTP, NFS, CIFS, IM, etc. - through access authentication systems such as PPPOE, DHCP, 802.1X, IPsec, as necessary. Unlimited scalability; GUI-driven management station; no scripting; open API. Errors isolated and identified in real-time; traffic monitored at every step in a protocol exchange (such as time of DNS lookup, time to logon to server, etc.). All transactions logged, and detailed reporting available.

WAPT - Web load and stress testing tool from SoftLogica LLC. Handles dynamic content and HTTPS/SSL; easy to use; support for redirects and all types of proxies; clear reports and graphs.

Microsoft Application Center Test - Tool for stressing Web servers and analyzing performance and scalability problems with Web applications, including ASP, and the components they use. Supports several authentication schemes and SSL protocol for use in testing personalized and secure sites. The programmable dynamic tests can also be used for functional testing. Visual Studio .NET Edition.

OpenLoad - Affordable and completely web-based load testing tool from OpenDemand; knowledge of scripting languages not required - web-based recorder can capture and translate any user action from any website or web application. Generate up to 1000 simultaneous users with minimum hardware.

ANTS - Advanced .NET Testing System from Red Gate Software. A load and stress testing tool focused on .NET web applications, including XML Web Services. ANTS generates multiple concurrent users via recordable Visual Basic .NET scripts and records the user experiences, at the same time performance counter information from Windows system is integrated into the results.

Apache JMeter - Java desktop application from the Apache Software Foundation designed to load test functional behavior and measure performance. Originally designed for testing Web Applications but has since expanded to other test functions; may be used to test performance both on static and dynamic resources (files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, FTP Servers and more). Can be used to simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types; can make a graphical analysis of performance or test server/script/object behavior under heavy concurrent load.

TestMaker - Free open source utility maintained by PushToTest.com and Frank Cohen, for performance, scalability, and functional testing of Web application. A framework and utility to build and run intelligent test agents that implement user behaviors and drive the system as users would. Features an XML-based scripting language and library of test objects to create test agents. Includes capability to check and monitor email systems using SMTP, POP3, IMAP protocols. Java-based tool - runs on any platform.

Webhammer - Low-cost utility by Stephen Genusa designed to test Web applications and servers. Configurable 1-16 connections per system CPU.

SiteStress - Remote, consultative load testing service by Webmetrics. Simulates end-user activity against designated websites for performance and infrastructure reliability testing. Can generate an infinitely scalable user load from GlobalWatch Network, and provide performance reporting, analysis, and optimization recommendations.

e-Load - Web load test tool from Empirix can simulate hundreds or thousands of concurrent users; accessible via a Web browser interface.

Siege - Open source stress/regression test and benchmark utility; supports basic authentication, cookies, HTTP and HTTPS protocols. Enables testing a web server with a configurable number of concurrent simulated users. Stress a single URL with a specified number of simulated users or stress multiple URL's simultaneously. Reports total number of transactions, elapsed time, bytes transferred, response time, transaction rate, concurrency, and server response. Developed by Jeffrey Fulmer, modeled in part after Lincoln Stein's torture.pl, but allows stressing many URLs simultaneously. Distributed under terms of the GPL; written in C; for UNIX and related platforms.

Jblitz - Affordable load testing tool from Clan Productions aimed at small web site developers. Each part of a site's functionality can be tested apart or together with up to 500 threads to simulate many users. Can request anything normally addressable through browser, including regular web pages, ASP scripts, JSP scripts, Servlets, CGI scripts etc.

WebServer Stress Tool - Web stress test tool from Paessler GmbH handles proxies, passwords, user agents, cookies and ASP-session IDs. Shareware. For Windows. Standard, Professional, and Enterprise versions.

Web Polygraph - Freely available benchmarking tool for caching proxies, origin server accelerators, L4/7 switches, and other Web intermediaries. Other features: for high-performance HTTP clients and servers, realistic traffic generation and content simulation, ready-to-use standard workloads, powerful domain-specific configuration language, and portable open-source implementation. C++ source available; binaries avail for Windows.

OpenSTA - 'Open System Testing Architecture' is a free, open source web load/stress testing application, licensed under the Gnu GPL. Utilizes a distributed software architecture based on CORBA. OpenSTA binaries available for Windows.

PureLoad - Java-based multi-platform performance testing and analysis tool from Minq Software. Includes 'Comparer' and 'Recorder' capabilities, dynamic input data, scenario editor/debugger, load generation for single or distributed sources.

ApacheBench - Perl API for Apache benchmarking and regression testing. Intended as foundation for a complete benchmarking and regression testing suite for transaction-based mod_perl sites. For stress-testing server while verifying correct HTTP responses. Based on the Apache 1.3.12 ab code. Available via CPAN as .tar.gz file.

Torture - Bare-bones Perl script by Lincoln Stein for testing web server speed and responsiveness and test stability and reliability of a particular Web server. Can send large amounts of random data to a server to measure speed and response time of servers, CGI scripts, etc.

WebSpray - Low-cost load testing tool from CAI Networks; includes link testing capabilities; can simulate up to 1,000 clients from a single IP address; also supports multiple IP addresses with or without aliases. For Windows.

 

eValid - Web test tool from Software Research, Inc that uses a 'Test Enabled Web Browser' test engine that provides browser based 100% client side quality checking, dynamic testing, content validation, page performance tuning, and webserver loading and capacity analysis.

WebPerformance Trainer - Load test tool emphasizing ease-of-use, from WebPerformance Inc. Supports all browsers and web servers; records and allows viewing of exact bytes flowing between browser and server; no scripting required. Modem simulation allows each virtual user to be bandwidth limited. Can automatically handle variations in session-specific items such as cookies, usernames, passwords, IP addresses, and any other parameter to simulate multiple virtual users. For Windows, Linux, Solaris, most UNIX variants.

WebSuite - A collection of load testing, capture/playback, and related tools from Technovations for performance testing of web sites. Modules include WebCorder, Load Director, Report Generator, Batch, Manager, and others. WebSizr load testing tool supports authentication, SSL, cookies, redirects. Recorded scripts can be modified manually. For Windows.

FORECAST - Load testing tool from Facilita Software for web, client-server, network, and database systems. Capabilities include proprietary, Java, or C++ scripting; windows browser or network recording/playback. Network traces can also be taken from over 15 third party tracing tools. Virtual user data can be parameterized. Works with a wide variety of platforms.

e-Load - Load test tool from Empirix Software; for use in conjunction with test scripts from their e-Tester functional test tool. Allows on-the-fly changes and has real-time reporting capabilities. Includes script editor with advanced debugging and maintenance capabilities. Works with a wide variety of platforms.

 

http-Load - Free load test application from ACME Labs to generate web server loads, from ACME Software. Handles HTTP and HTTPS; for Unix.

QALoad - Compuware's QALoad for load/stress testing of web, database, and char-based systems. Integration with other Compuware tools provides an in-depth view by monitoring its operating system, database and network components, as well as the application itself. Works with a variety of databases, middleware, ERP.

Microsoft WCAT load test tool - Web load test tool from Microsoft for load testing of MS IIS servers; other MS stress tools also listed.

Portent Web Load test tool - Loadtesting.com's low-priced web load testing tool. Has minimal hardware requirements. Page validation via matching string in page. Written in Java; multi-platform.

SilkPerformer - Enterprise-class load-testing tool from Segue. Can simulate thousands of users working with multiple protocols and computing environments. Allows prediction of behavior of e-business environment before it is deployed, regardless of size and complexity. SilkPerformer Lite version also available for up to 100 simulated users.

Radview's WebLoad - Load testing tool from Radview Software, also available as part of their TestView web testing suite. Capabilities include over 75 Performance Metrics; can view global or detailed account of transaction successes/failures on individual Virtual Client level, assisting in capturing intermittent errors; allows comparing of running test vs. past test metrics. Test scripting via visual tool or Javascript. Wizard for automating non-GUI-based services testing; DoS security testing.

Loadrunner - Mercury's load/stress testing tool for web and other applications; supports a wide variety of application environments, platforms, and databases. Large suite of network/app/server monitors to enable performance measurement of each tier/server/component and tracing of bottlenecks. Integrates with other Mercury testing and monitoring producs.

'Computer Story' 카테고리의 다른 글

[Computer Story] 하드디스크별 속도 비교 동영상  (0) 2010.07.16
PS3용 모션 컨트롤러  (0) 2009.06.05
RSA 암호  (0) 2007.09.19
OpenCV 설치하기  (1) 2007.08.19
비스타 종료버튼을 절전에서 종료로 바꾸기  (0) 2007.07.27
* RSA란 암호화와 인증을 할수있는 공개키 암호시스템이다. 이것은 1977년 RonRivest와 Adi Shamir, Leonard Adleman에 의해서 개발되었다. 이것은 다음과 같은 동작원리를 가진다.
커다란 두 소수 p와 q를 가지고, 이 둘의 곱 n=pq을 구한다. n보다 작고 (p-1)(q-1)와 서로소 관계인 e를 정한다. 즉 e는 (p-1)(q-1)와 1을 제외한 어떠한 공통근을 가지지 않는다. 또다른 숫자 d는 (ed-1)이 (p-1)(q-1)로 나누어 질수 있도록 정한다. e와 d값은 공개지수 비밀 지수라 불린다. 공개키는 (n,e)쌍이 되고 비밀키는 (n,d)쌍이 된다. p,q값은 비밀키로 유지하던지 소멸한다.
RSA 암호 예: 송신자가 메시지 m을 암호화 할때는 다음과 같다. c=me mod n,여기서 e와 n은 수신자의 공개키 이다. 이때 수신자는 m=cd mod n 이렇게 하여 메시지 m을 얻는다.

송신자 Alice는 평문 P와 공개키 (n,e) 를 이용하여

 C º Pe mod n 계산하여 암호문  C Bob에게 송신한다

 

 

 수신자 Bob은 개인키 d를 이용하여

Cd º  P mod n 를 계산하여 평문 P를 얻는다.
 

<준비 과정(Setup 과정)>

1. B는 p = 7 과 q = 11을 선택하고 n = 7 * 11 = 77 을 구한다.

2. B는  φ(n) = (p - 1)(q - 1) = 6 * 10 = 60 을 구한다.

3. B는 60과 서로소가 되도록 e = 37 을 선택하고 Euclid 호제법을 이용하여

   ed º 1 mod 60 을 만족하는 d = 13 을 구한다.

60x + 37y = 1

큰수 60 을 작은수 37로 나누겠습니다.
60 = 37 * 1 + 23    23 = (60-37)
제수였던 37을 나머지 23으로 나누겠습니다.
37 = 23 * 1 + 14   14 = (37-23)
제수였던 23을 나머지 14으로 나누겠습니다.
23 = 14 * 1 + 9      9 = (23-14)
14 = 9 * 1 + 5       5 = (14-9)
9 = 5 * 1 + 4         4 = (9- 5)
5 = 4 * 1 + 1     

1 = 5 - 4
1 = 5 - 9 + 5
  = 2 * (14-9) - 9
  = 2 * 14 - 3 * 9
  = 2 * (37-23) - 3 * (23-14)
  = 2 * 37 - 5 * 23 + 3 * 14
  = 2 * 37 - 5 * 23 + 3 * (37-23)
  = 5 * 37 - 8 * 23
  = 5 * 37 - 8 * (60-37)
  = 5 * 37 - 8 * 60 + 8 * 37
  =13 * 37 - 8 * 60

 

4. B 는  n = 77 과 e = 37 을 공개한다.

 

<암호화 과정>

5. A는 공개키 n = 77 과 e = 37 을 이용하여 평문 17로 부터

   C = 17^37 º 52 mod 77 을 계산하여 암호문 52를 B에게 보낸다.

 

<복호화 과정>

6. B는 개인키 n = 77 과 d = 13을 이용하여 암호문 52로 부터

   P = 52^13 º 17 mod 77 을 계산하여 평문 17을 얻는다.


[RSA]
 
-1978년 미국의 Rivest, Shamir, Adleman이 개발한 대표적인 공개키 암호 커다란 두 소수의 곱 n=pq의 인수분해문제에 안전성을 둠
 
[RSA 암복호화과정]
-키선택: 큰 소수 p,q, n=pq 과 자연수 e ( (e,f(n))=1)를 선택 하여  edº1 mod f(n)를 만족하는 e를 찾는다. 공개키 (n,e) , 비밀키 (p,q,d)
 
-암호화: 송신자는 C º Pe mod n 를 계산하여 암호화
-복호화: Cd º  P mod n 로 복호화
 
[모듈라 지수승(exponentiation)]: gk mon n 계산, 암호화 및 복호화의 속도에 가장 큰 영향을 미치며, RSA 뿐만 아니라 대부분의 공개키 암호의 효율성에서 가장 중요한 부분임
 
[RSA 해독]
-n의 소인수  p,q를 구한다
-Euler 함수f(n)의 값을 구한다.
-공개키 e와 공개정보 n을 가지고
 비밀키 edº1 mod f(n)을 만족하는 d를 구한다.
 
[RSA 암호의 안전성을 높이기 위한 조건]
-p와 q는 같지 않고 거의 같은 크기의 자릿수이어야 한다.
-p-1과 q-1은 커다란 소인수를 각각 가져야 한다.
-p-1과 q-1의 최대공약수는 작은 수이어야 한다.
-p와 q 의 크기는 충분히 커야 한다 (현재 1024비트 이상요구)

'Computer Story' 카테고리의 다른 글

PS3용 모션 컨트롤러  (0) 2009.06.05
서버 부하 테스트 툴  (0) 2008.12.22
OpenCV 설치하기  (1) 2007.08.19
비스타 종료버튼을 절전에서 종료로 바꾸기  (0) 2007.07.27
Visual Studio 2005에서 DirectX 설정  (0) 2007.07.24

OpenCV 초보를 위한 강좌 1편
OpenCV 는 인텔에서 만든 강력한 영상처리 라이브러리입니다. 강력한 기능과 성능에도 불구하고 3D 의 오픈소스 라이브러리인 OpenGL 처럼 알려지지도 않고, 활발하게 개발되지도 않고, 자주 쓰이지도 않아 안타까운 심정입니다. 더욱이 국내에는 아직 활성화된 커뮤니티가 없어 자료를 구하기도 어려운 실정입니다. 그리하여 본인이 자료를 수집하고 공부하는 과정에서 부딪친 문제점들의 해결방법들과 습득한 지식들을 강좌를 통해 풀어나가 보려고 합니다. 강좌는 다음과 같은 목차로 진행될 예정이며 예제 위주와 간결한 문체를 사용하여 정리 하도록 하겠습니다. 개발 환경은 별도로 거론하지 않는다면 다음과 같습니다.

- Windows XP Platform
- Visual C++ 6.0
- OpenCV beta 5.0a

- 목 차 -
1. OpenCV 란 무엇인가?
2. OpenCV 설치하기
3. OpenCV 셋팅
3.1 Visual C++ 6.0
3.2 Visual Studio .Net
4. OpenCV 테스트


- 본 문 -

1. OpenCV 란 무엇인가?
- OpenCV(Open Source Computer Vision) 인텔에서 만든 강력한 영상처리 라이브러리입니다.
- 기초 영상처리서부터 고급 수준의 영상처리 까지 상당한 량의 알고리즘들이 함수로 구현되어 있습니다.
- Binarization, Noise, Motion Detect, Edge Detect, Pattern Recognition, Hidden Markov Model 등등
- 오픈소스로서 스펙만 맞추면 자신의 알고리즘도 라이브러리에 등록 시킬 수 있습니다.
- 인텔의 OpenCV 사이트 http://www.intel.com/technology/computing/opencv/index.htm

2. OpenCV 설치하기
- OS Platform 에 맞게 OpenCV 라이브러리 다운받아 설치합니다.
- Linux 와 Windows 용이 있고 Mac OS 에서도 돌아간다고 합니다.
- 최신 OpenCV 가 Release 되는 곳
  http://sourceforge.net/projects/opencvlibrary
- 다운받기 OpenCV beta 5.0a for Window platform
  http://nchc.dl.sourceforge.net/sourceforge/opencvlibrary/OpenCV_b5a.exe
  http://keihanna.dl.sourceforge.net/sourceforge/opencvlibrary/OpenCV_b5a.exe

3. OpenCV 셋팅
기본적을 OpenCV 를 돌아가게 하려면 크게 4가지 작업을 해주어야 합니다.

1. 첫번째, Visual Studio 셋팅에서 디렉토리 추가하기
개발 환경에서 컴파일러가 헤더 및 라이브러리 파일들을 찾을 수 있도록 한번만 셋팅해 주면 됩니다.

- Include files
  C:\PROGRAM FILES\OPENCV\CXCORE\INCLUDE
  C:\PROGRAM FILES\OPENCV\CV\INCLUDE
  C:\PROGRAM FILES\OPENCV\OTHERLIBS\HIGHGUI
  C:\PROGRAM FILES\OPENCV\OTHERLIBS\CVCAM\INCLUDE

- Library files
  C:\PROGRAM FILES\OPENCV\LIB

2. 두번째, 프로젝트에 Link 하기
  라이브러리 파일들을 링크 해 줍니다.
  원칙적으로는 소스 코드에 쓰인 라이브러리만 링크 해주면 되지만 일일이 어디에 속해 있는 함수인지 알기가 번거로움으로 일반적으로는 앞에 세가지를 기본적으로 링크하면 됩니다.
  cxcore.lib, cv.lib, highgui.lib, cvcam.lib

3. 세번째, 소스파일에 header 파일 include 하기
  #include <cv.h>
  #include <cxcore.h>
  #include <highgui.h>

4. 네번째, dll 파일 복사하기
  C:\Program Files\OpenCV\bin 폴더에서 다음과 같은 파일들을 Workspace 파일이 있는 폴더에 복사 합니다.
만약에 라이브러리를 사용하지 않았을 경우에는 필요한 파일만 복사하면 됩니다.
  cv097.dll, cxcore097.dll, cvcam097.dll, highgui097.dll

3.1 Visual C++ 6.0

1. 메뉴에서 Tools >> Options >> Directories 에서 다음과 같은 디렉토리를 추가합니다.
- Include files 항목에서 추가 할 디렉토리
  C:\PROGRAM FILES\OPENCV\CXCORE\INCLUDE
  C:\PROGRAM FILES\OPENCV\CV\INCLUDE
  C:\PROGRAM FILES\OPENCV\OTHERLIBS\HIGHGUI
  C:\PROGRAM FILES\OPENCV\OTHERLIBS\CVCAM\INCLUDE


  - Library files 항목에서 추가 할 디렉토리
  C:\PROGRAM FILES\OPENCV\LIB


2. 메뉴에서 Project >> Settings >> Link 에 다음과 같은 파일들을 링크합니다.
  Win32 console 로 프로젝트를 생성하셔야 Project 메뉴가 활성화 됩니다.
  좌측 상단에 Settings For 항목은 'All configurations' 로 두고 아래 파일들을
  Object/library modules: 란에 적어 넣습니다.
     cxcore.lib cv.lib highgui.lib cvcam.lib


3. 소스코드에 다음과 같은 헤더 파일들을 include 해줍니다.
  #include <cv.h>
  #include <cxcore.h>
  #include <highgui.h>

4. 다음 폴더에서 나열된 dll 파일들을 현재 작업중인 소스파일이 있는 곳에 복사합니다.
  - 폴더: C:\Program Files\OpenCV\bin
  - 파일: cv097.dll, cxcore097.dll, cvcam097.dll, highgui097.dll


3.2 Visual Studio .Net

위의 과정과 동일하지만 메뉴가 조금 다릅니다.

1. 메뉴에서 Tools >> Options >> Projects >> VC++ Directories 에서 다음과 같은 디렉토리를 추가합니다.

- Include files 항목에서 추가 할 디렉토리
  C:\PROGRAM FILES\OPENCV\CXCORE\INCLUDE
  C:\PROGRAM FILES\OPENCV\CV\INCLUDE
  C:\PROGRAM FILES\OPENCV\OTHERLIBS\HIGHGUI
  C:\PROGRAM FILES\OPENCV\OTHERLIBS\CVCAM\INCLUDE


  - Library files 항목에서 추가 할 디렉토리
  C:\PROGRAM FILES\OPENCV\LIB


2. 메뉴에서 Project >> Properties >> Linker >> Input 에 다음과 같은 파일들을 링크합니다.
  Win32 console 로 프로젝트를 생성하셔야 Project 메뉴가 활성화 됩니다.
  좌측 상단에 Configuration 항목은 'All Configurations' 으로 하고 'Additional Dependencies' 란에 아래 파일들을 적습니다.
    cxcore.lib cv.lib highgui.lib cvcam.lib


3. 소스코드에 다음과 같은 헤더 파일들을 include 해줍니다.
  #include <cv.h>
  #include <cxcore.h>
  #include <highgui.h>

4. 다음 폴더에서 나열된 dll 파일들을 현재 작업중인 소스파일이 있는 곳에 복사합니다.
  - 폴더: C:\Program Files\OpenCV\bin
  - 파일: cv097.dll, cxcore097.dll, cvcam097.dll, highgui097.dll

4. OpenCV 테스트
위의 과정을 통하여 기본 셋팅이 끝났으면 OpenCV 를 이용하여 다음과 같은 간단한 이미지 뷰어를 만들어 보겠습니다. 소스 파일과 VC++ 6.0 에서 컴파일 할 수 있도록 셋팅된 workspace 파일을 아래 링크에 첨부하였습니다.

http://cafe.naver.com/opencv/6

  - 소스 코드(압축 파일 첨부)
  // 소스 코드 시작
  #include <cv.h>
  #include <highgui.h>

  void main()
  {

      IplImage* image = 0;                        
// image 선언
     image = cvLoadImage("t9t9.jpg", 1);     // t9t9.jpg 파일을 읽어 들임

      cvNamedWindow( "T9-viewer", 1);    // 윈도우 생성
      cvShowImage( "T9-viewer", image );  // 이미지를 보여줌
      cvWaitKey(0);                                   // 키 입력을 기다림

      cvDestroyWindow( "T9-viewer" );      // 윈도우 종료
  }

  // 소스 코드 끝


  - 결과 화면


'Computer Story' 카테고리의 다른 글

서버 부하 테스트 툴  (0) 2008.12.22
RSA 암호  (0) 2007.09.19
비스타 종료버튼을 절전에서 종료로 바꾸기  (0) 2007.07.27
Visual Studio 2005에서 DirectX 설정  (0) 2007.07.24
패턴인식의 정의  (4) 2007.02.05

윈도우비스타는 시작 버튼을 눌렀을 때 나오는 종료 버튼을 누르면 컴퓨터가 종료 되지 않고 절전 모드로 들어간다. 기존의 윈도우XP에서는 '시작'>'컴퓨터끄기'를 선택하면 컴퓨터를 끌 수 있게 3가지 메뉴가 나온다.


윈도우비스타를 처음 쓰게 되면 이 부분이 불편하다고 생각 된다. 주위 윈도우 사용자들 중에 절전모드를 자주 쓰는 사람을 거의 보지 못했다. 잘 안쓰는 절전 기능이 기본으로 종료 버튼을 꿰 차고 앉아 있는 꼴이다. 실제 종료를 하려면 한단계 더 가서 ▶ 버튼을 누른 후 '시스템종료'를 클릭해 줘야 종료된다.


윈도우비스타를 쓰다 보면 '종료버튼'을 '절전'에서 '종료'로 바꾸고 싶은 마음이 생길 것이다. 어떻게하면 '절전'에게 빼앗긴 '종료버튼'을 되 찾아 올 수 있는지 알아 보자.



기본 상태의 종료 버튼은 이런 모양이다


종료 버튼에 마우스를 올려 놓으면 위와 같은 글자가 나타난다

'작업을 빠르게 다시 시작할 수 있도록 사용자 세션을 저장하고 컴퓨터를 절전 상태로 전환합니다.'라는 글이 나오고 있다.


 

제어판의 '하드웨어 및 소리'->'전원옵션'으로 들어간다.

 
'전원관리 옵션설정 변경'으로 들어간다

'고급 전원 관리 옵션 설정 변경'으로 들어간다.



'전원 단추와 덮개'>'시작 메뉴 줜원 단추'에서 설정을 기존 '절전'에서 '시스템 종료'로 바꿔 준다.




이렇게 해 주면 종료버튼이 진정한 '종료'로 바뀐다.




바꿔 주고 나면 종료버튼 모양이 약간 바뀌게 된다. 어떤 부분이 바뀌었는지 못 알아 보겠는가? 못 알아 보겠다면 맨 위에 있는 사진과 비교해 보기 바란다.



종료버튼 위에 마우스를 올려 보면 나오는 글이 이전과 달라졌다는 것도 알 수 있다. '열려 있는 프로그램을 모두 닫고 Windows를 종료한 다음 컴퓨터를 끕니다'라고 나온다.

'Computer Story' 카테고리의 다른 글

RSA 암호  (0) 2007.09.19
OpenCV 설치하기  (1) 2007.08.19
Visual Studio 2005에서 DirectX 설정  (0) 2007.07.24
패턴인식의 정의  (4) 2007.02.05
C++ Singleton Pattern  (0) 2007.02.03

메뉴창에서 도구->옵션->프로젝트 및 솔루션->VC++ 디렉토리에서

1) 실행 파에 DirectX SDK 가 설치된 폴더의 Utilities\bin\x86폴더 포함


2) 포함 파일에 DirectX SDK 가 설치된 폴더의 Include폴더 포함


3) 라이브러리 파일에 DirectX SDK 가 설치된 폴더의 Lib\x86폴더 포함

'Computer Story' 카테고리의 다른 글

OpenCV 설치하기  (1) 2007.08.19
비스타 종료버튼을 절전에서 종료로 바꾸기  (0) 2007.07.27
패턴인식의 정의  (4) 2007.02.05
C++ Singleton Pattern  (0) 2007.02.03
IT 업계를 떠나는 소프트웨어 개발자들  (0) 2007.01.24

+ Recent posts