[Insight-users] Segmentation performance Optimization needed

Jisung Kim bahrahm@yahoo.com
Wed, 13 Nov 2002 06:47:07 -0800 (PST)


Hi suresh.

About the MRIBiasFieldCorrector, current
implementation evaluates every pixel in the image. I
am planning to add  an feature so that users can
select the step size for evaluation. For example, user
may be set the step size 3 and then only one pixel
from every three pixels (in sequential order) will be
evaluated to estimate the bias field. 

Thanks,

Jisung.
--- suresh  <suresh_kb@rediffmail.com> wrote:
> Hi Luis..
> Hi Martin..
> HI Lydia..
> 
> 
>  	Thannks for your help on ResampleImageFilter and
> Interpolation. 
> Yes.. the problem there is with spacing.
>  	it was always just 1 for both moving and fixed. I
> fixed it . Got 
> it correct.
> 
>  	I need some help about optimizing the
> perrformance.
>  	I'm running this code on a P4 with 256 MB ram.
> 
>  	This code is taking nearly 5 minutes to
> complete.Could please 
> suggest any optimizing techniques.
> 
> *********************
>  	typedef 
>
itk::NeighborhoodConnectedImageFilter<Converter::ImageType,
> 
> Converter::ImageType> FilterType;
> 
>  	FilterType::Pointer filter = FilterType::New();
>  	filter->SetInput(image_in);
>  	FilterType::IndexType seed;
>  	seed[0] = X; seed[1] = Y; seed[2]=slice;
>  	filter->SetSeed(seed);
> 
>  	//check threshold choices
>  	if (lowerThreshold <= 0) return NULL;
>  	if (upperThreshold <= 0 || upperThreshold <=
> lowerThreshold) 
> lowerThreshold = 255;
> 
>  	filter->SetLower (lowerThreshold);
>  	filter->SetUpper (upperThreshold);
> 
>  	filter->SetReplaceValue(255);
>  	ProgressUpdate(10, "1.2....",
> (CString)InputVolumeName);
>  	try{
>  		filter->Update();
>  	}catch (itk::ExceptionObject& e){
>  		AfxMessageBox(e.GetDescription());
>  		return NULL;
>  	}
> ***************************
>  	Also the MRIBiasFieldCorrector is consuming lot of
> time. Any 
> optimizing technioque ???
> 
>  	Thannks
> 
>  	suresh
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
>
http://public.kitware.com/mailman/listinfo/insight-users


=====
Jisung Kim
bahrahm@yahoo.com
106 Mason Farm Rd.
129 Radiology Research Lab., CB# 7515
Univ. of North Carolina at Chapel Hill
Chapel Hill, NC 27599-7515

__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2