22 #ifndef otbStreamingLineSegmentDetector_hxx
23 #define otbStreamingLineSegmentDetector_hxx
28 #include "itkAffineTransform.h"
33 template <
class TInputImage>
38 template <
class TInputImage>
43 template <
class TInputImage>
46 Superclass::GenerateInputRequestedRegion();
52 typename InputImageType::RegionType region = this->GetOutput()->GetRequestedRegion();
54 region.PadByRadius(1);
55 region.Crop(input->GetLargestPossibleRegion());
57 input->SetRequestedRegion(region);
61 template <
class TInputImage>
65 typename ExtractImageFilterType::Pointer extract = ExtractImageFilterType::New();
66 extract->SetInput(this->GetInput());
67 extract->SetExtractionRegion(this->GetInput()->GetBufferedRegion());
72 extract->GetOutput()->SetMetaDataDictionary(this->GetInput()->GetMetaDataDictionary());
75 lsd->SetInput(extract->GetOutput());
76 lsd->UpdateOutputInformation();
80 return lsd->GetOutput();