[ITK] [ITK-users] itk::simple::Image from stream
Hyun Jae Kang
hyunjae.kang at kitware.com
Mon Apr 18 08:50:44 EDT 2016
Hi Piotr Piasecki,
Here is an example (SimpleITK/Examples/BufferImportExport.cxx) related to
itk.simple.Image Import from C array and Export to C array.
Please check the following web page:
https://github.com/SimpleITK/SimpleITK/blob/master/Examples/BufferImportExport.cxx
Thanks,
Hyun Jae
On Mon, Apr 18, 2016 at 8:37 AM, <community-request at itk.org> wrote:
> Send Community mailing list submissions to
> community at itk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://public.kitware.com/mailman/listinfo/community
> or, via email, send a message with subject or body 'help' to
> community-request at itk.org
>
> You can reach the person managing the list at
> community-owner at itk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Community digest..."
>
>
> Today's Topics:
>
> 1. Re: [ITK-users] itk::simple::Image from stream (Piotr Piasecki)
> 2. Re: [ITK-users] itk::simple::Image from stream
> (Magnotta, Vincent A)
> 3. [ITK-users] 3D Registration (suneeza hanif)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 17 Apr 2016 18:18:21 +0200
> From: Piotr Piasecki <piotpia124 at student.polsl.pl>
> To: Bradley Lowekamp <brad at lowekamp.net>
> Cc: insight-users at itk.org
> Subject: Re: [ITK] [ITK-users] itk::simple::Image from stream
> Message-ID:
> <
> CACTtAOC5wPUuXjp83Oj5MpCgMAM1yD3x321uQdVSKNuCW+Ms8w at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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.
>
> 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.
>
> Regards.
>
> 2016-04-17 16:29 GMT+02:00 Bradley Lowekamp <brad at lowekamp.net>:
>
> > I think this example is what you are looking for:
> >
> > http://www.itk.org/SimpleITKDoxygen/html/ImageGetBuffer_8cs-example.html
> >
> > > On Apr 17, 2016, at 9:11 AM, Piotr Piasecki <
> piotpia124 at student.polsl.pl>
> > wrote:
> > >
> > > Dear Sir or Madam.
> > >
> > > 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?
> > >
> > > I will be very grateful for any answer.
> > >
> > > Best regards.
> > >
> > > Peter.
> > > _____________________________________
> > > 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/20160417/e6df6a4c/attachment-0001.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
>
> ------------------------------
>
> Message: 2
> Date: Sun, 17 Apr 2016 16:33:46 +0000
> From: "Magnotta, Vincent A" <vincent-magnotta at uiowa.edu>
> To: Piotr Piasecki <piotpia124 at student.polsl.pl>
> Cc: "insight-users at itk.org" <insight-users at itk.org>
> Subject: Re: [ITK] [ITK-users] itk::simple::Image from stream
> Message-ID: <0BC4AACF-1D51-4AD6-AD06-D6729FE6B6BC at uiowa.edu>
> Content-Type: text/plain; charset="utf-8"
>
> This is probably the example that you are looking for.
>
>
> http://www.itk.org/SimpleITKDoxygen/html/BufferImportExport_8cxx-example.html
>
> Vince
>
> --
> Associate Professor
> Department of Radiology
> L311 PBDB
> 169 Newton Road
> Iowa City, IA 52242
> E-mail: vincent-magnotta at uiowa.edu
> Phone: 319-335-5482 Fax: 319-353-6275
> Website: http://www.healthcare.uiowa.edu/Radiology
>
> From: Insight-users <insight-users-bounces at itk.org<mailto:
> insight-users-bounces at itk.org>> on behalf of Piotr Piasecki <
> piotpia124 at student.polsl.pl<mailto:piotpia124 at student.polsl.pl>>
> Date: Sunday, April 17, 2016 at 11:18 AM
> To: Bradley Lowekamp <brad at lowekamp.net<mailto:brad at lowekamp.net>>
> Cc: "insight-users at itk.org<mailto:insight-users at itk.org>" <
> insight-users at itk.org<mailto:insight-users at itk.org>>
> Subject: Re: [ITK-users] itk::simple::Image from stream
>
> 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.
>
> 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.
>
> Regards.
>
> 2016-04-17 16:29 GMT+02:00 Bradley Lowekamp <brad at lowekamp.net<mailto:
> brad at lowekamp.net>>:
> I think this example is what you are looking for:
>
> http://www.itk.org/SimpleITKDoxygen/html/ImageGetBuffer_8cs-example.html
>
> > On Apr 17, 2016, at 9:11 AM, Piotr Piasecki <piotpia124 at student.polsl.pl
> <mailto:piotpia124 at student.polsl.pl>> wrote:
> >
> > Dear Sir or Madam.
> >
> > 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?
> >
> > I will be very grateful for any answer.
> >
> > Best regards.
> >
> > Peter.
> > _____________________________________
> > Powered by www.kitware.com<http://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
>
>
>
> ________________________________
> 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.
> ________________________________
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/community/attachments/20160417/2c38b9f2/attachment-0001.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
>
> ------------------------------
>
> Message: 3
> Date: Mon, 18 Apr 2016 14:37:55 +0200
> From: suneeza hanif <suneezahanif02 at gmail.com>
> To: Insight-users <insight-users at itk.org>
> Subject: [ITK] [ITK-users] 3D Registration
> Message-ID:
> <CA+-JtYVEXWn9f22LS-xVNtA7wSEbKivL=
> BtRHt3sON9RZ1WHyg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello Everyone,
>
> I would like to know is there any way that instead of optimizing 6
> parameters of VersorRigid3DTranform we can optimize only 4?
>
> Thanks.
>
> Best Regards,
> Suneeza
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://public.kitware.com/pipermail/community/attachments/20160418/f4ff7ebe/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
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
>
> ------------------------------
>
> End of Community Digest, Vol 31, Issue 32
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160418/755a457e/attachment-0001.html>
More information about the Community
mailing list