Skip to content
Snippets Groups Projects
Commit bc6a1cd8 authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

BUG : correct warnings

parent ad6d1b55
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,6 @@ DrawLineSpatialObjectListFilter<TInputImage, TOutput>
::CropRightSegment(OutputIndexType *indexToCrop,OutputIndexType *otherIndex, const OutputImageRegionType *outputRegionForThread ) const
{
OutputIndexType tempIndex;
/** Dimensions of the buffered region*/
typename OutputImageRegionType::SizeType size = outputRegionForThread->GetSize();
......@@ -271,7 +270,8 @@ DrawLineSpatialObjectListFilter<TInputImage, TOutput>
{
OutputIndexType tempIndex;
tempIndex = *indexToCrop;
/** Dimensions of the buffered region*/
typename OutputImageRegionType::SizeType size = outputRegionForThread->GetSize();
typename OutputImageRegionType::IndexType start = outputRegionForThread->GetIndex();
......
......@@ -159,8 +159,8 @@ LineSpatialObjectListToRightAnglePointSetFilter<TImage,TLinesList ,TPointSet>
/** Verify if the indexes of the line are inside the region*/
typename InputImageType::SizeType size = this->GetInputImage()->GetRequestedRegion().GetSize();
unsigned int width = size[0];
unsigned int length = size[1];
//unsigned int width = size[0];
//unsigned int length = size[1];
// if(IndexBeginSrc[0] > width) IndexBeginSrc[0] = width-1;
// if(IndexBeginSrc[1] > length) IndexBeginSrc[1] = length-1;
......
......@@ -68,6 +68,7 @@ int otbEdgeDensityImageFilter(int argc, char* argv[] )
CannyFilter->SetMaximumError(maximumError); ///0.01f
filter->SetDetector(CannyFilter);
filter->SetNeighborhoodRadius(radius);
/** Write the output*/
WriterType::Pointer writer = WriterType::New();
......
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