[Insight-users] Re: LaplacianImageFiler
Bing Jian
bjian at cise . ufl . edu
Mon, 27 Oct 2003 17:18:03 -0500 (EST)
The reason is I did not figure out a way to use
adaptor as input of laplacian filter, so I have
to resort to a bridge like rescaler.
--
Best wishes,
Bing Jian
bjian at cise . ufl . edu
On Mon, 27 Oct 2003, Luis Ibanez wrote:
>
> 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!
> >
> >
>
>
>
>
>