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

BUG: Replacing the inheritance of RemoteSenginRegion from itk::ImageRegion to...

BUG: Replacing the inheritance of RemoteSenginRegion from itk::ImageRegion to an inheritance from itk::Region. Providing an itk::ImageRegion<2> GetImageRegion() method instead
parent 1050d188
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ public:
typedef typename PolygonType::ConstPointer PolygonConstPointerType;
typedef typename PolygonType::VertexListType VertexListType;
typedef typename PolygonType::ContinuousIndexType ContinuousIndexType;
typedef typename PolygonType::RegionType RegionType;
typedef typename PolygonType::RegionType::ImageRegionType RegionType;
typedef typename VertexListType::ConstIterator VertexListConstIteratorType;
typedef std::vector<bool> BoolVectorType;
......
......@@ -53,8 +53,8 @@ PolygonToPolygonRCC8Calculator<TInputPolygon>
::Compute(void)
{
// First check if bounding regions are disjoints
RegionType region1 = m_Polygon1->GetBoundingRegion();
RegionType region2 = m_Polygon2->GetBoundingRegion();
RegionType region1 = m_Polygon1->GetBoundingRegion().GetImageRegion();
RegionType region2 = m_Polygon2->GetBoundingRegion().GetImageRegion();
// If intersection is not null, we have to do the computation
if (!RegionsIntersectionIsNull(region1,region2))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment