<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Documentation%2F4.6%2FExtensions%2FOpenCVExample</id>
	<title>Documentation/4.6/Extensions/OpenCVExample - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Documentation%2F4.6%2FExtensions%2FOpenCVExample"/>
	<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.6/Extensions/OpenCVExample&amp;action=history"/>
	<updated>2026-05-09T02:06:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Documentation/4.6/Extensions/OpenCVExample&amp;diff=47691&amp;oldid=prev</id>
		<title>UpdateBot: Nightly -&gt; 4.6</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.6/Extensions/OpenCVExample&amp;diff=47691&amp;oldid=prev"/>
		<updated>2016-11-07T07:12:10Z</updated>

		<summary type="html">&lt;p&gt;Nightly -&amp;gt; 4.6&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{documentation/versioncheck}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-header}}&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|Introduction and Acknowledgements}}&lt;br /&gt;
{{documentation/{{documentation/version}}/module-introduction-start|{{documentation/modulename}}}}&lt;br /&gt;
{{documentation/{{documentation/version}}/module-introduction-row}}&lt;br /&gt;
Extension: [[Documentation/{{documentation/version}}/Extensions/OpenCVExample|OpenCVExample]]&amp;lt;br&amp;gt;&lt;br /&gt;
Acknowledgments:&lt;br /&gt;
This work was supported by a supplement to the Quantitative Image Informatics project via the NIH-National Cancer Institute Grant U24 CA180918-03 as well as U24 CA180924 Tools to Analyze Morphology and Spatially Mapped Molecular Data with Stony Brook University.&amp;lt;br&amp;gt;&lt;br /&gt;
Author: Nicole Aucoin ({{collaborator|name|spl}})&amp;lt;br&amp;gt;&lt;br /&gt;
Contact: Nicole Aucoin, &amp;lt;email&amp;gt;nicole@bwh.harvard.edu&amp;lt;/email&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-introduction-row}}&lt;br /&gt;
{{documentation/{{documentation/version}}/module-introduction-logo-gallery&lt;br /&gt;
|{{collaborator|logo|qiicr}}|{{collaborator|longname|qiicr}}&lt;br /&gt;
|{{collaborator|logo|spl}}|{{collaborator|longname|spl}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{documentation/{{documentation/version}}/module-introduction-end}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|Module Description}}&lt;br /&gt;
[[File:OpenCVExample.png|x200px]]&lt;br /&gt;
&lt;br /&gt;
This extension provides an example on how to build and run against the OpenCV package provided by the &lt;br /&gt;
[[Documentation/{{documentation/version}}/Extensions/SlicerOpenCV | SlicerOpenCV extension]]. [http://opencv.org/ OpenCV] (Open Source Computer Vision Library) is an open source computer vision and machine learning software library.&lt;br /&gt;
&lt;br /&gt;
This extension includes a C++ CLI module that loads, operates on, and saves PNG images.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|Use Cases}}&lt;br /&gt;
&lt;br /&gt;
* This module can be used as a template by extension developers who wish to use the algorithms provided by [http://opencv.org OpenCV].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|Tutorials}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|Panels and their use}}&lt;br /&gt;
&lt;br /&gt;
The ExampleOpenCV extension provides the  [[Documentation/{{documentation/version}}/Extensions/BlendVectorVolumes|Blend Vector Volumes]] CLI as a stand alone module, but the extension does not provide an overall GUI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|Similar Modules}}&lt;br /&gt;
&lt;br /&gt;
The [https://github.com/SBU-BMI/SlicerPathology Slicer Pathology] extension also uses the [[Documentation/{{documentation/version}}/Extensions/SlicerOpenCV | SlicerOpenCV extension]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|References}}&lt;br /&gt;
* [http://qiicr.org Quantitative Image Informatics for Cancer Research (QIICR)]&lt;br /&gt;
* [http://opencv.org Open Source Computer Vision]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-section|Information for Developers}}&lt;br /&gt;
{{documentation/{{documentation/version}}/module-developerinfo}}&lt;br /&gt;
&lt;br /&gt;
Use this extension as a template on how to include OpenCV provided by the SlicerOpenCV module.&lt;br /&gt;
&lt;br /&gt;
In your extension's top level CMakeList.txt:&lt;br /&gt;
* Specify that it depends on SlicerOpenCV:&lt;br /&gt;
  set(EXTENSION_DEPENDS &amp;quot;SlicerOpenCV&amp;quot;)&lt;br /&gt;
* Include the SlicerOpenCV extension by including this line after the find_package for Slicer:&lt;br /&gt;
  find_package(SlicerOpenCV REQUIRED)&lt;br /&gt;
* If you're building from a locally built version of SlicerOpenCV, SlicerOpenCV_DIR is set to the inner-build sub-directory of the SlicerOpenCV build directory.&lt;br /&gt;
&lt;br /&gt;
In your extension's module CMakeLists.txt file:&lt;br /&gt;
* Define OpenCV_DIR by finding the package that SlicerOpenCV provided:&lt;br /&gt;
  find_package(OpenCV 3.1 REQUIRED)&lt;br /&gt;
* The header include path is defined as:&lt;br /&gt;
  get_filename_component(OpenCV_INCLUDE_DIR ${OpenCV_DIR}/../../include ABSOLUTE)&lt;br /&gt;
* Add ${OpenCV_INCLUDE_DIR} to the MODULE_INCLUDE_DIRECTORIES list&lt;br /&gt;
* Link against the OpenCV libraries by adding ${OpenCV_LIBS} to the MODULE_TARGET_LIBRARIES&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;br /&gt;
{{documentation/{{documentation/version}}/module-footer}}&lt;br /&gt;
[[Category:Documentation/{{documentation/version}}/Modules/Examples]]&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;/div&gt;</summary>
		<author><name>UpdateBot</name></author>
		
	</entry>
</feed>