Skip to content
Snippets Groups Projects
Commit 416eaf86 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Adding more simple boundary conditions

parent 1d226aeb
Branches
Tags
No related merge requests found
......@@ -21,8 +21,8 @@
#include "otbPixelWiseBlockMatchingImageFilter.h"
#include "itkImageRegionConstIterator.h"
#include "itkImageRegionIterator.h"
#include "itkProgressReporter.h"
#include "itkConstantBoundaryCondition.h"
namespace otb
{
......@@ -437,6 +437,13 @@ TOutputDisparityImage,TMaskImage,TBlockMatchingFunctor>
itk::ImageRegionIterator<TOutputDisparityImage> outVDispIt(outVDispPtr,inputLeftRegion);
itk::ImageRegionConstIterator<TMaskImage> inMaskIt;
itk::ConstantBoundaryCondition<TInputImage> nbc1;
itk::ConstantBoundaryCondition<TInputImage> nbc2;
leftIt.OverrideBoundaryCondition(&nbc1);
rightIt.OverrideBoundaryCondition(&nbc2);
// If we have a mask, define the iterator
if(inMaskPtr)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment