<div dir="ltr">Hi Piotr Piasecki, <div><br></div><div>Here is an example (SimpleITK/Examples/BufferImportExport.cxx) related to itk.simple.Image Import from C array and Export to C array.</div><div>Please check the following web page:</div><div><br></div><div><a href="https://github.com/SimpleITK/SimpleITK/blob/master/Examples/BufferImportExport.cxx">https://github.com/SimpleITK/SimpleITK/blob/master/Examples/BufferImportExport.cxx</a></div><div><br></div><div>Thanks,</div><div><br></div><div>Hyun Jae<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 8:37 AM,  <span dir="ltr"><<a href="mailto:community-request@itk.org" target="_blank">community-request@itk.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Send Community mailing list submissions to<br>
        <a href="mailto:community@itk.org">community@itk.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:community-request@itk.org">community-request@itk.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:community-owner@itk.org">community-owner@itk.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Community digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: [ITK-users] itk::simple::Image from stream (Piotr Piasecki)<br>
   2. Re: [ITK-users] itk::simple::Image from stream<br>
      (Magnotta, Vincent A)<br>
   3. [ITK-users] 3D Registration (suneeza hanif)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 17 Apr 2016 18:18:21 +0200<br>
From: Piotr Piasecki <<a href="mailto:piotpia124@student.polsl.pl">piotpia124@student.polsl.pl</a>><br>
To: Bradley Lowekamp <<a href="mailto:brad@lowekamp.net">brad@lowekamp.net</a>><br>
Cc: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>
Subject: Re: [ITK] [ITK-users] itk::simple::Image from stream<br>
Message-ID:<br>
        <<a href="mailto:CACTtAOC5wPUuXjp83Oj5MpCgMAM1yD3x321uQdVSKNuCW%2BMs8w@mail.gmail.com">CACTtAOC5wPUuXjp83Oj5MpCgMAM1yD3x321uQdVSKNuCW+Ms8w@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Thank you for your answer. Unfortunately, it seems to me that's not what I<br>
meant. This example shows how to get buffer from itk.simple.Image and have<br>
access to pixel values. To create an object SimpleITK.ReadImage method is<br>
used.<br>
<br>
In my problem, I receive DICOM file from REST Api and I got it as a<br>
System.IO.Stream in my code. I need to create itk.simple.Image from that<br>
stream, because I do not want to save the file on local disk, and then load<br>
it again using ImageFileReader or SimpleITK.ReadImage.<br>
<br>
Regards.<br>
<br>
2016-04-17 16:29 GMT+02:00 Bradley Lowekamp <<a href="mailto:brad@lowekamp.net">brad@lowekamp.net</a>>:<br>
<br>
> I think this example is what you are looking for:<br>
><br>
> <a href="http://www.itk.org/SimpleITKDoxygen/html/ImageGetBuffer_8cs-example.html" rel="noreferrer" target="_blank">http://www.itk.org/SimpleITKDoxygen/html/ImageGetBuffer_8cs-example.html</a><br>
><br>
> > On Apr 17, 2016, at 9:11 AM, Piotr Piasecki <<a href="mailto:piotpia124@student.polsl.pl">piotpia124@student.polsl.pl</a>><br>
> wrote:<br>
> ><br>
> > Dear Sir or Madam.<br>
> ><br>
> > I am a student in Biomedical Engineering at the Silesian University of<br>
> Technology. During my studies I worked with ITK and SimpleITK in C#. I<br>
> wanted to use them in my current project, but I have an important question.<br>
> Is there a possibility to create object of itk::simple::Image class from<br>
> stream or byte array, not by using ImageFileReader? If there is no such<br>
> possibility in SimpleITK in C#, is it possible in native ITK?<br>
> ><br>
> > I will be very grateful for any answer.<br>
> ><br>
> > Best regards.<br>
> ><br>
> > Peter.<br>
> > _____________________________________<br>
> > Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
> ><br>
> > Visit other Kitware open-source projects at<br>
> > <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> ><br>
> > Kitware offers ITK Training Courses, for more information visit:<br>
> > <a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
> ><br>
> > Please keep messages on-topic and check the ITK FAQ at:<br>
> > <a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
> ><br>
> > Follow this link to subscribe/unsubscribe:<br>
> > <a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://public.kitware.com/pipermail/community/attachments/20160417/e6df6a4c/attachment-0001.html" rel="noreferrer" target="_blank">http://public.kitware.com/pipermail/community/attachments/20160417/e6df6a4c/attachment-0001.html</a>><br>
-------------- next part --------------<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 17 Apr 2016 16:33:46 +0000<br>
From: "Magnotta, Vincent A" <<a href="mailto:vincent-magnotta@uiowa.edu">vincent-magnotta@uiowa.edu</a>><br>
To: Piotr Piasecki <<a href="mailto:piotpia124@student.polsl.pl">piotpia124@student.polsl.pl</a>><br>
Cc: "<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>" <<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>><br>
Subject: Re: [ITK] [ITK-users] itk::simple::Image from stream<br>
Message-ID: <<a href="mailto:0BC4AACF-1D51-4AD6-AD06-D6729FE6B6BC@uiowa.edu">0BC4AACF-1D51-4AD6-AD06-D6729FE6B6BC@uiowa.edu</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
This is probably the example that you are looking for.<br>
<br>
<a href="http://www.itk.org/SimpleITKDoxygen/html/BufferImportExport_8cxx-example.html" rel="noreferrer" target="_blank">http://www.itk.org/SimpleITKDoxygen/html/BufferImportExport_8cxx-example.html</a><br>
<br>
Vince<br>
<br>
--<br>
Associate Professor<br>
Department of Radiology<br>
L311 PBDB<br>
169 Newton Road<br>
Iowa City, IA 52242<br>
E-mail: <a href="mailto:vincent-magnotta@uiowa.edu">vincent-magnotta@uiowa.edu</a><br>
Phone: <a href="tel:319-335-5482" value="+13193355482">319-335-5482</a> Fax: <a href="tel:319-353-6275" value="+13193536275">319-353-6275</a><br>
Website: <a href="http://www.healthcare.uiowa.edu/Radiology" rel="noreferrer" target="_blank">http://www.healthcare.uiowa.edu/Radiology</a><br>
<br>
From: Insight-users <<a href="mailto:insight-users-bounces@itk.org">insight-users-bounces@itk.org</a><mailto:<a href="mailto:insight-users-bounces@itk.org">insight-users-bounces@itk.org</a>>> on behalf of Piotr Piasecki <<a href="mailto:piotpia124@student.polsl.pl">piotpia124@student.polsl.pl</a><mailto:<a href="mailto:piotpia124@student.polsl.pl">piotpia124@student.polsl.pl</a>>><br>
Date: Sunday, April 17, 2016 at 11:18 AM<br>
To: Bradley Lowekamp <<a href="mailto:brad@lowekamp.net">brad@lowekamp.net</a><mailto:<a href="mailto:brad@lowekamp.net">brad@lowekamp.net</a>>><br>
Cc: "<a href="mailto:insight-users@itk.org">insight-users@itk.org</a><mailto:<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>>" <<a href="mailto:insight-users@itk.org">insight-users@itk.org</a><mailto:<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>>><br>
Subject: Re: [ITK-users] itk::simple::Image from stream<br>
<br>
Thank you for your answer. Unfortunately, it seems to me that's not what I meant. This example shows how to get buffer from itk.simple.Image and have access to pixel values. To create an object SimpleITK.ReadImage method is used.<br>
<br>
In my problem, I receive DICOM file from REST Api and I got it as a System.IO.Stream in my code. I need to create itk.simple.Image from that stream, because I do not want to save the file on local disk, and then load it again using ImageFileReader or SimpleITK.ReadImage.<br>
<br>
Regards.<br>
<br>
2016-04-17 16:29 GMT+02:00 Bradley Lowekamp <<a href="mailto:brad@lowekamp.net">brad@lowekamp.net</a><mailto:<a href="mailto:brad@lowekamp.net">brad@lowekamp.net</a>>>:<br>
I think this example is what you are looking for:<br>
<br>
<a href="http://www.itk.org/SimpleITKDoxygen/html/ImageGetBuffer_8cs-example.html" rel="noreferrer" target="_blank">http://www.itk.org/SimpleITKDoxygen/html/ImageGetBuffer_8cs-example.html</a><br>
<br>
> On Apr 17, 2016, at 9:11 AM, Piotr Piasecki <<a href="mailto:piotpia124@student.polsl.pl">piotpia124@student.polsl.pl</a><mailto:<a href="mailto:piotpia124@student.polsl.pl">piotpia124@student.polsl.pl</a>>> wrote:<br>
><br>
> Dear Sir or Madam.<br>
><br>
> I am a student in Biomedical Engineering at the Silesian University of Technology. During my studies I worked with ITK and SimpleITK in C#. I wanted to use them in my current project, but I have an important question. Is there a possibility to create object of itk::simple::Image class from stream or byte array, not by using ImageFileReader? If there is no such possibility in SimpleITK in C#, is it possible in native ITK?<br>
><br>
> I will be very grateful for any answer.<br>
><br>
> Best regards.<br>
><br>
> Peter.<br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><<a href="http://www.kitware.com" rel="noreferrer" target="_blank">http://www.kitware.com</a>><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br>
<br>
<br>
________________________________<br>
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.<br>
________________________________<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://public.kitware.com/pipermail/community/attachments/20160417/2c38b9f2/attachment-0001.html" rel="noreferrer" target="_blank">http://public.kitware.com/pipermail/community/attachments/20160417/2c38b9f2/attachment-0001.html</a>><br>
-------------- next part --------------<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 18 Apr 2016 14:37:55 +0200<br>
From: suneeza hanif <<a href="mailto:suneezahanif02@gmail.com">suneezahanif02@gmail.com</a>><br>
To: Insight-users <<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>><br>
Subject: [ITK] [ITK-users] 3D Registration<br>
Message-ID:<br>
        <CA+-JtYVEXWn9f22LS-xVNtA7wSEbKivL=<a href="mailto:BtRHt3sON9RZ1WHyg@mail.gmail.com">BtRHt3sON9RZ1WHyg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello Everyone,<br>
<br>
I would like to know is there any way that instead of optimizing 6<br>
parameters of VersorRigid3DTranform we can optimize only 4?<br>
<br>
Thanks.<br>
<br>
Best Regards,<br>
Suneeza<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://public.kitware.com/pipermail/community/attachments/20160418/f4ff7ebe/attachment.html" rel="noreferrer" target="_blank">http://public.kitware.com/pipermail/community/attachments/20160418/f4ff7ebe/attachment.html</a>><br>
-------------- next part --------------<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Community Digest, Vol 31, Issue 32<br>
*****************************************<br>
</blockquote></div><br></div></div></div></div>