<?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.8%2FExtensions%2FBlendVectorVolumes</id>
	<title>Documentation/4.8/Extensions/BlendVectorVolumes - 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.8%2FExtensions%2FBlendVectorVolumes"/>
	<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.8/Extensions/BlendVectorVolumes&amp;action=history"/>
	<updated>2026-04-10T01:21:20Z</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.8/Extensions/BlendVectorVolumes&amp;diff=55444&amp;oldid=prev</id>
		<title>UpdateBot: Nightly -&gt; 4.8</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.8/Extensions/BlendVectorVolumes&amp;diff=55444&amp;oldid=prev"/>
		<updated>2017-10-18T07:04:22Z</updated>

		<summary type="html">&lt;p&gt;Nightly -&amp;gt; 4.8&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;
&lt;br /&gt;
This is a CLI module that depends on the [[Documentation/{{documentation/version}}/Extensions/SlicerOpenCV|SlicerOpenCV extension]], providing a way to blend two vector volumes together. It uses the OpenCV function [http://docs.opencv.org/3.1.0/d2/de8/group__core__array.html#gafafb2513349db3bcff51f54ee5592a19 addWeighted].&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;
When loading in RGB files, they are loaded as vector volumes in Slicer. Use this module to blend them together if they have the same dimensions.&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;
{|&lt;br /&gt;
| [[Image:BlendVectorVolumes-GUI.png|thumb|200px|Blend Vector Volumes GUI]]&lt;br /&gt;
|&lt;br /&gt;
'''IO:'''&lt;br /&gt;
* Alpha: A double value between 0.0 and 1.0 that gives the weight of the first input image in the resulting blend.&lt;br /&gt;
* Gamma: A double value that is added to the weighted blend, used to increase or decrease intensity.&lt;br /&gt;
* First Input Volume: First input vector volume&lt;br /&gt;
* Second Input Volume: Second input vector volume, must have the same dimensions as the first input volume.&lt;br /&gt;
* Output Volume: Output vector volume, holding the blending of the two input volumes, Can be a newly created vector volume.&lt;br /&gt;
|}&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;
** [http://docs.opencv.org/3.1.0/d2/de8/group__core__array.html#gafafb2513349db3bcff51f54ee5592a19 addWeighted] documentation for version 3.1&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;
To depend on the OpenCV provided by the [[Documentation/{{documentation/version}}/Extensions/SlicerOpenCV|SlicerOpenCV]] extension, in the CLI's CMakeLists.txt file 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;
[[Documentation/{{documentation/version}}/Extensions/OpenCVExample|OpenCVExample]] provides some more information about writing an extension that includes modules that depend on OpenCV&lt;br /&gt;
&lt;br /&gt;
The images are read in using the opencv imread method. The blending is done by the opencv addWeighted function, and the output is written using imwrite.&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/Filtering]]&lt;br /&gt;
&amp;lt;!-- ---------------------------- --&amp;gt;&lt;/div&gt;</summary>
		<author><name>UpdateBot</name></author>
		
	</entry>
</feed>