Commit edac8e97 authored by Declara Denis's avatar Declara Denis Committed by Christian Schulte zu Berge
Browse files

Integrated UsFanRenderer into the CudaConfidenceMaps pipeline

parent 62ed39ae
......@@ -35,12 +35,14 @@ namespace campvis {
, _usResampler(&_canvasSize)
, _usMapsSolver()
, _usFusion(&_canvasSize)
, _usFanRenderer(&_canvasSize)
{
addProcessor(&_usIgtlReader);
addProcessor(&_usBlurFilter);
addProcessor(&_usResampler);
addProcessor(&_usMapsSolver);
addProcessor(&_usFusion);
addProcessor(&_usFanRenderer);
}
CudaConfidenceMapsDemo::~CudaConfidenceMapsDemo() {
......@@ -71,9 +73,15 @@ namespace campvis {
_usFusion.p_usImageId.setValue("us.igtl.ImageClient");
_usFusion.p_targetImageID.setValue("us.fusion");
//_usFusion.p_targetImageID.addSharedProperty(&_usFanRenderer.p_inputImage);
_usFusion.p_view.setValue(12);
_renderTargetID.setValue("us.fusion");
_usFanRenderer.p_inputImage.setValue("us.confidence");
_usFanRenderer.p_renderTargetID.setValue("us.fused_fan");
_usFanRenderer.p_innerRadius.setValue(120.0f/540.0f);
_usFanRenderer.p_halfAngle.setValue(37);
_renderTargetID.setValue("us.fused_fan");
}
void CudaConfidenceMapsDemo::deinit() {
......
......@@ -31,6 +31,7 @@
#include "modules/preprocessing/processors/glgaussianfilter.h"
#include "modules/preprocessing/processors/glimageresampler.h"
#include "modules/cudaconfidencemaps/processors/cudaconfidencemapssolver.h"
#include "modules/cudaconfidencemaps/processors/usfanrenderer.h"
#include "modules/openigtlink/processors/openigtlinkclient.h"
#include "modules/advancedusvis/processors/advancedusfusion.h"
......@@ -71,6 +72,7 @@ namespace campvis {
GlImageResampler _usResampler;
CudaConfidenceMapsSolver _usMapsSolver;
AdvancedUsFusion _usFusion;
UsFanRenderer _usFanRenderer;
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment