<div dir="ltr"><div>Dear all ,</div>
<div>using managed ITK I need to simulate this part of code :</div>
<div> </div>
<div> InputImageType::Pointer inputImage = reader->GetOutput();<br> InputImageType::SizeType size = inputImage->GetBufferedRegion().GetSize();<br> InputImageType::IndexType start = inputImage->GetBufferedRegion().GetIndex();</div>
<div> // set a seed by default in the center of the image.<br> InputImageType::IndexType seed;<br> seed[0] = start[0] + size[0] / 2;<br> seed[1] = start[1] + size[1] / 2;<br> seed[2] = start[2] + size[2] / 2;</div>
<div> filter->SetSeed( seed );</div>
<div> </div>
<div>using c# </div>
<div> </div>
<div><font color="#008080" size="2"><font color="#008080" size="2">
<p>itkSize</p></font></font><font size="2"> size = InputImageType.BufferedRegion.Dimension ; </font>
<p><font size="2"></font> </p>
<p><font size="2">but it give error which is </font></p><font size="2"><font color="#008080" size="2"><font color="#000000" size="2">
<p><strong>Error 1 Cannot implicitly convert type 'uint' to 'itk.itkSize</strong></p></font></font></font>
<p><font size="2">also I will face the same problem in itkseed , how to work around that </font></p>
<p><font size="2"></font> </p>
<p><font size="2"></font> </p>
<p><font size="2">Best regards </font></p></div>
<div> </div>
<div> </div></div>