Re: VTKImageReslice: slow performance.

David Gobbi <[email protected]> Fri, 5 Jul 2019 09:12:07 -0600
Newsgroups gmane.comp.lib.vtk.user
Message-ID <CANwS1=GebMVBxTFp=DdwUEcwzfUfBWApSGhVFFDTGdu_OYhi_A@mail.gmail.com>
--===============1073055904==
Content-Type: multipart/alternative; boundary="0000000000003f828c058cf08599"

--0000000000003f828c058cf08599
Content-Type: text/plain; charset="UTF-8"

Hi Abhishek,

It's the Update() method is what actually executes the filter. GetOutput()
is just a getter method that returns a pointer.

Can you provide a short code snippet so that we can see exactly how you are
using vtkImageReslice?

  David

On Fri, Jul 5, 2019 at 3:55 AM abhishek <[email protected]> wrote:

> Hello Group, I am having performance issues while extracting
> SAGGITAL/CORONAL
> planes using VTKImageReslice. Each call to VTKImageReslice->GetOutput()
> takes 5-7 ms.
>
> The volume used has the following properties:
> 1. Dimensions: 512x512x297
> 2. Pixel spacing: 0.4x0.4x0.7
> 3. Scalar type: Unsigned Int16
> 4. Number of components: 1 (Monochrome).
>
> System & Build environment:
> 1. Windows 7, 12GB RAM, i3 processor.
> 2. Visual studio 2013
> 2. VTK 7.1.1
> 3. WPF for UI
>
> Are there any known considerations for making VTKImageReslice fast?
>

--0000000000003f828c058cf08599
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Abhishek,</div><div><br></div><div>It&#39;s the Up=
date() method is what actually executes the filter. GetOutput() is just a g=
etter method that returns a pointer.</div><div><br></div><div>Can you provi=
de a short code snippet so that we can see exactly how you are using vtkIma=
geReslice?</div><div><br></div><div>=C2=A0 David</div><br><div class=3D"gma=
il_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Jul 5, 2019 at 3:55=
 AM abhishek &lt;<a href=3D"mailto:[email protected]">[email protected]=
om</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex=
">Hello Group, I am having performance issues while extracting SAGGITAL/COR=
ONAL<br>
planes using VTKImageReslice. Each call to VTKImageReslice-&gt;GetOutput()<=
br>
takes 5-7 ms.<br>
<br>
The volume used has the following properties:<br>
1. Dimensions: 512x512x297<br>
2. Pixel spacing: 0.4x0.4x0.7<br>
3. Scalar type: Unsigned Int16<br>
4. Number of components: 1 (Monochrome).<br>
<br>
System &amp; Build environment:<br>
1. Windows 7, 12GB RAM, i3 processor.<br>
2. Visual studio 2013<br>
2. VTK 7.1.1<br>
3. WPF for UI<br>
<br>
Are there any known considerations for making VTKImageReslice fast? <br>
</blockquote></div></div>

--0000000000003f828c058cf08599--

--===============1073055904==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers

--===============1073055904==--