Skip to content
Snippets Groups Projects
Commit d1721b6f authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

Correction sur l'appel à des méthodes GetInput car erreur de compilation sous Visual.

parent 6b53742d
Branches
Tags
No related merge requests found
...@@ -43,10 +43,9 @@ AddCarvingPathFilter<TInputImage,TInputPath,TOutputImage> ...@@ -43,10 +43,9 @@ AddCarvingPathFilter<TInputImage,TInputPath,TOutputImage>
::GenerateData(void) ::GenerateData(void)
{ {
const InputImageType * inputImage = this->GetInput(); const InputImageType * inputImage = this->GetImageInput();
OutputImageType * outputImage = this->GetOutput(); const InputPathType * inputPath = this->GetPathInput();
InputPathType * inputPath = static_cast<const InputPathType *> OutputImageType * outputImage = this->GetOutput();
(this->itk::ProcessObject::GetInput(1));
outputImage->SetBufferedRegion( outputImage->GetRequestedRegion() ); outputImage->SetBufferedRegion( outputImage->GetRequestedRegion() );
outputImage->Allocate(); outputImage->Allocate();
......
...@@ -43,10 +43,9 @@ RemoveCarvingPathFilter<TInputImage,TInputPath,TOutputImage> ...@@ -43,10 +43,9 @@ RemoveCarvingPathFilter<TInputImage,TInputPath,TOutputImage>
::GenerateData(void) ::GenerateData(void)
{ {
const InputImageType * inputImage = this->GetInput(); const InputImageType * inputImage = this->GetImageInput();
OutputImageType * outputImage = this->GetOutput(); const InputPathType * inputPath = this->GetPathInput();
InputPathType * inputPath = static_cast<const InputPathType *> OutputImageType * outputImage = this->GetOutput();
(this->itk::ProcessObject::GetInput(1));
outputImage->SetBufferedRegion( outputImage->GetRequestedRegion() ); outputImage->SetBufferedRegion( outputImage->GetRequestedRegion() );
outputImage->Allocate(); outputImage->Allocate();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment