[Insight-users] managed itkConfidenceConnectedImageFilter Question
Ali Habib
ali.mahmoud.habib at gmail.com
Thu Feb 25 09:21:46 EST 2010
Dear all ,
using managed ITK I need to simulate this part of code :
InputImageType::Pointer inputImage = reader->GetOutput();
InputImageType::SizeType size =
inputImage->GetBufferedRegion().GetSize();
InputImageType::IndexType start =
inputImage->GetBufferedRegion().GetIndex();
// set a seed by default in the center of the image.
InputImageType::IndexType seed;
seed[0] = start[0] + size[0] / 2;
seed[1] = start[1] + size[1] / 2;
seed[2] = start[2] + size[2] / 2;
filter->SetSeed( seed );
using c#
itkSize size = InputImageType.BufferedRegion.Dimension ;
but it give error which is
*Error 1 Cannot implicitly convert type 'uint' to 'itk.itkSize*
also I will face the same problem in itkseed , how to work around that
Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100225/57b3dec7/attachment-0001.htm>
More information about the Insight-users
mailing list