<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr">Hi guys,<br><br>I got an error i cannot figure out: I'm creating a pipeline to crop a volume of interest and give this volume to a threshold connected filter in order to segment only this new volume. here is my pipeline:<br><br>...<br>filter->SetRegionOfInterest( DesiredRegion );<br>filter->SetInput( reader->GetOutput() );<br>newVolume->SetInput( filter->GetOutput() );<br><br>thresholdConnected->SetInput( filter->GetOutput() );<br>caster->SetInput( thresholdConnected->GetOutput() );<br>label->SetInput( caster->GetOutput() );<br>label->SetUseCompression(1);<br>...<br><br>Building it, I get this error, though: <br><br><div dir="ltr">Error<span class="ecxApple-tab-span" style="white-space:pre">        </span>1<span class="ecxApple-tab-span" style="white-space:pre">        </span>error C2664: 'void itk::ImageToImageFilter<TInputImage,TOutputImage>::SetInput(const itk::Image<TPixel,VImageDimension> *)' : cannot convert parameter 1 from 'itk::Image<TPixel,VImageDimension> *' to 'const itk::Image<TPixel,VImageDimension> *'</div><div dir="ltr"><br></div><div dir="ltr">Does anyone know a way to solve this problem?</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Thanks,</div><div dir="ltr"><br></div><div dir="ltr">Mirco </div><div><br></div></div>
                                           </div></body>
</html>