Skip to content
Snippets Groups Projects
Commit 04e53945 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

STYLE

parent 02ab0e55
No related branches found
No related tags found
No related merge requests found
...@@ -270,27 +270,25 @@ void ...@@ -270,27 +270,25 @@ void
ImageLayerRenderingModel<TOutputImage> ImageLayerRenderingModel<TOutputImage>
::SetExtractRegionByIndex( const IndexType & startIndex, const IndexType & stopIndex ) ::SetExtractRegionByIndex( const IndexType & startIndex, const IndexType & stopIndex )
{ {
RegionType lImageRegion; RegionType lImageRegion;
lImageRegion = this->GetLayer(0)->GetExtent(); lImageRegion = this->GetLayer(0)->GetExtent();
SizeType lSize; SizeType lSize;
lSize[0] = vcl_abs(stopIndex[0]-startIndex[0]); lSize[0] = vcl_abs(stopIndex[0]-startIndex[0]);
lSize[1] = vcl_abs(stopIndex[1]-startIndex[1]); lSize[1] = vcl_abs(stopIndex[1]-startIndex[1]);
IndexType lIndex; IndexType lIndex;
lIndex[0] = std::min(startIndex[0],stopIndex[0]); lIndex[0] = std::min(startIndex[0],stopIndex[0]);
lIndex[1] = std::min(startIndex[1],stopIndex[1]); lIndex[1] = std::min(startIndex[1],stopIndex[1]);
RegionType lRegion; RegionType lRegion;
lRegion.SetIndex(lIndex); lRegion.SetIndex(lIndex);
lRegion.SetSize(lSize); lRegion.SetSize(lSize);
std::cout<<"OH OUIIIIIIIIi"<<std::endl;
if(lRegion.Crop(lImageRegion)) if(lRegion.Crop(lImageRegion))
{ {
m_ExtractRegion = lRegion; m_ExtractRegion = lRegion;
} }
} }
template <class TOutputImage> template <class TOutputImage>
......
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