[Insight-users] Re: LaplacianImageFiler

Luis Ibanez luis . ibanez at kitware . com
Mon, 27 Oct 2003 17:08:27 -0500


Hi Bing,

There is no reason for using the RescaleImageFilter
if you want to keep the same range of intensities.
This will be like a NULL filter, or an identity
operation.

Could you give us more details on why do you want to
do this ?


   Thanks


     Luis


---------------------
Bing Jian wrote:
>   Now I have to insert a rescaler into the pipeline between
> adaptor and laplacian. So I have sth. like:
> 
>         typedef itk::RescaleIntensityImageFilter< ImageAdaptorType,
> RealImageType> RescalerType;
>         RescalerType::Pointer rescaler = RescalerType::New();
>         typedef itk::LaplacianImageFilter<
>                 RealImageType,
>                 RealImageType >    LaplacianFilter;
> 
> Then
>         rescaler->SetInput( adaptor );
>         //rescaler->SetOutputMinimum(  0  );
>         //rescaler->SetOutputMaximum( 255 );
>         lapFilter->SetInput(rescaler->GetOutput() );
> 
>    One question comes up with the rescaler, seems I have to
> set the max and min for the rescaler, otherwise, the program
> will terminate at this stage. Is there anyway to setup the
> rescaler to keep the orginal scale?
> 
>    Thanks!
> 
>