[ITK] [ITK-users] In-place extraction of N-1 dimensional images from N dimensional images
Dženan Zukić
dzenanz at gmail.com
Thu Jul 28 13:06:11 EDT 2016
Hi Toby,
Extract filter could theoretically run in place only when the extraction
region differs from largest possible region only along the slowest changing
index. To make this possible, ExtractImageFilter should
override CanRunInPlace() which it inherits from InPlaceImageFilter and
implement this theoretical check. Of course, other changes will be required
to make it function properly.
Regards,
Dženan
On Thu, Jul 28, 2016 at 9:23 AM, Wood, Tobias <tobias.wood at kcl.ac.uk> wrote:
> Hello Dženan,
>
> I have had the same problem as Edwin with ExtractImageFilter, but in a
> different context. Eventually I gave up and accepted the speed/memory
> penalty of copying the 3D volumes out of the 4D series. Is there really no
> way in ITK to get a temporary “view” of a subregion for processing, without
> resorting to referencing the raw arrays?
>
> Thanks,
> Toby
>
> On 28/07/2016, 13:40, "Insight-users on behalf of Dženan Zukić" <
> insight-users-bounces at itk.org on behalf of dzenanz at gmail.com> wrote:
>
>
> Hi Edwin,
>
>
> you should be able to achieve your goal using
> import image filter <
> http://www.vtk.org/doc/nightly/html/classvtkImageImport.html#details>.
> ITK has import image filter
> too <https://itk.org/Doxygen/html/classitk_1_1ImportImageFilter.html>,
> so you can decide in which library to do dimensional reduction.
>
>
> Regards,
> Dženan
>
>
> On Thu, Jul 28, 2016 at 4:37 AM, Edwin Bennink
> <hebennink at gmail.com> wrote:
>
> Hello,
>
>
> I am working on an ITK/VTK viewer for visualizing 3D+time image data.
> The data is represented by 4D images in ITK (x,y,z,t). I would like to be
> able to access the 3D data in VTK without copying it, since that would slow
> down scrolling through time in large
> datasets. I noticed that, although in-place extraction should be
> possible, the ExtractImageFilter 'says no' to in-place extraction when the
> input and output dimensions differ. Does anyone know a way to achieve my
> goal using existing ITK functions? For example,
> if there would be some way of reducing the dimension of 'flat'
> images, i.e. 3D (Nx,Ny,1) to 2D (Nx, Ny), then I could still use the
> ExtractImageFilter.
>
>
> Best,
> Edwin
>
>
> _____________________________________
> 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
>
>
>
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160728/5aff021f/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