[ITK] [ITK-users] simpleitk question C#
Dženan Zukić
dzenanz at gmail.com
Fri Aug 5 10:05:44 EDT 2016
Hi Anton,
I don't know C#'s syntax that well to give you direct translation, but here
is another way to write the same C++ code which should be easier to
translate:
std::vector<unsigned int> transfromDomainMeshSize;
//C# eqivalent: unsigned int[] transfromDomainMeshSize;
transfromDomainMeshSize.resize(8);
//my stab in C#: transfromDomainMeshSize=new unsigned int[8];
for (int i=0; i<8; i++)
transfromDomainMeshSize[i]=fixed.GetDimension();
HTH,
Dženan
On Fri, Aug 5, 2016 at 9:40 AM, Anton Delehony <anton.delehony at gmail.com>
wrote:
> Hi all,
>
> I'm a new to C# and simple itk and have a very simple question.
>
> in the ImageRegistrationMethodBSpline1.cxx there is the line:
>
> std::vector<unsigned int> transfromDomainMeshSize(fixed.GetDimension(),8);
>
> What is the equivlent line to this in C#?
>
> thanks,
>
> Anton
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160805/0d40c45c/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list