[Insight-developers] Fwd: SimpleITK TCON - Special Topic On R Wrapping
Bradley Lowekamp
blowekamp at mail.nih.gov
Wed Feb 1 09:14:38 EST 2012
Hello Richard,
Looks like this is a nice step.
I am forwarding this to the insight developers list as other may be interested in your work. It will be also best to share the discussions of SimpleITK design for posterity's sake.
My couple of comments:
The image print method should use sitk::Image::ToString. A very similar method exits is java and python and they all just use this method to print the object.
It looks like you spent a little effort adding methods to the wrapped stl::vector class.The design of SimpleITK is to use the std::vector types for the small variable length vector and vectors that are the length of the image dimension. So they are used alot. I think the goal of wrapping them should be that this type gets mapped to the wrapped languages native array/vector type.
I think we are going to need to spend a bit of time in this section of the SWIG documentation to get the R wrapping the way it should be:
http://www.swig.org/Doc2.0/Extending.html#Extending
Brad
Begin forwarded message:
> From: Richard Beare <richard.beare at gmail.com>
> Date: January 31, 2012 11:21:55 PM EST
> To: "Lowekamp, Bradley (NIH/NLM/LHC) [C]" <blowekamp at mail.nih.gov>
> Subject: Re: SimpleITK TCON - Special Topic On R Wrapping
> Reply-To: "Richard.Beare at ieee.org" <Richard.Beare at ieee.org>
>
> Hi,
> I won't be able to attend the teleconference. I'm sending two files
> that implement some syntactic sugar - show and print methods for
> vectors/images and access/assignment using [ operators
>
>
>
> On Wed, Feb 1, 2012 at 1:12 PM, Bradley Lowekamp <blowekamp at mail.nih.gov> wrote:
>> Hello,
>>
>> We will be having the SimpleITK TCON on Wednesday morning at 9:30am EST.
>>
>> There is a special topic on Wrapping for R based on significant interest by
>> a variety of parties.
>>
>> Here is a rough agenda:
>>
>> http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/Tcon_2012_2_1
>>
>> Please feel free to provide details, and add important issues.
>>
>> Brad
>>
>>
>> ========================================================
>>
>> Bradley Lowekamp
>>
>> Medical Science and Computing for
>>
>> Office of High Performance Computing and Communications
>>
>> National Library of Medicine
>>
>> blowekamp at mail.nih.gov
>>
>>
========================================================
Bradley Lowekamp
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine
blowekamp at mail.nih.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20120201/6b5e2ce4/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sitkextras.q
Type: application/octet-stream
Size: 2580 bytes
Desc: not available
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20120201/6b5e2ce4/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20120201/6b5e2ce4/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sitktests.q
Type: application/octet-stream
Size: 2738 bytes
Desc: not available
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20120201/6b5e2ce4/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20120201/6b5e2ce4/attachment-0002.htm>
More information about the Insight-developers
mailing list